add whitespace

This commit is contained in:
Tom Vaughan 2012-08-22 14:15:37 -07:00
parent f65564404c
commit bcba3abbdb
2 changed files with 8 additions and 0 deletions

View file

@ -4,6 +4,7 @@ require "middleman-deploy/extension"
module Middleman module Middleman
module Cli module Cli
# This class provides a "deploy" command for the middleman CLI. # This class provides a "deploy" command for the middleman CLI.
class Deploy < Thor class Deploy < Thor
include Thor::Actions include Thor::Actions
@ -49,9 +50,11 @@ module Middleman
run command run command
end end
end end
# Alias "d" to "deploy" # Alias "d" to "deploy"
Base.map({ "d" => "deploy" }) Base.map({ "d" => "deploy" })
end end
end end

View file

@ -4,12 +4,15 @@ require "middleman-core"
# Extension namespace # Extension namespace
module Middleman module Middleman
module Deploy module Deploy
class Options < Struct.new(:host, :port, :user, :path, :clean); end class Options < Struct.new(:host, :port, :user, :path, :clean); end
class << self class << self
def options def options
@@options @@options
end end
def registered(app, options_hash={}, &block) def registered(app, options_hash={}, &block)
options = Options.new(options_hash) options = Options.new(options_hash)
yield options if block_given? yield options if block_given?
@ -39,7 +42,9 @@ EOF
end end
end end
end end
alias :included :registered alias :included :registered
end end
module Helpers module Helpers