add whitespace

master v0.0.1
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 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

View File

@ -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