add whitespace
This commit is contained in:
parent
f65564404c
commit
bcba3abbdb
|
@ -4,6 +4,7 @@ require "middleman-deploy/extension"
|
|||
|
||||
module Middleman
|
||||
module Cli
|
||||
|
||||
# This class provides a "deploy" command for the middleman CLI.
|
||||
class Deploy < Thor
|
||||
include Thor::Actions
|
||||
|
@ -49,9 +50,11 @@ module Middleman
|
|||
|
||||
run command
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Alias "d" to "deploy"
|
||||
Base.map({ "d" => "deploy" })
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,12 +4,15 @@ require "middleman-core"
|
|||
# Extension namespace
|
||||
module Middleman
|
||||
module Deploy
|
||||
|
||||
class Options < Struct.new(:host, :port, :user, :path, :clean); end
|
||||
|
||||
class << self
|
||||
|
||||
def options
|
||||
@@options
|
||||
end
|
||||
|
||||
def registered(app, options_hash={}, &block)
|
||||
options = Options.new(options_hash)
|
||||
yield options if block_given?
|
||||
|
@ -39,7 +42,9 @@ EOF
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
alias :included :registered
|
||||
|
||||
end
|
||||
|
||||
module Helpers
|
||||
|
|
Loading…
Reference in a new issue