From bcba3abbdb4e22b5dd387790c18a866ce9c6d4a9 Mon Sep 17 00:00:00 2001 From: Tom Vaughan Date: Wed, 22 Aug 2012 14:15:37 -0700 Subject: [PATCH] add whitespace --- lib/middleman-deploy/commands.rb | 3 +++ lib/middleman-deploy/extension.rb | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/lib/middleman-deploy/commands.rb b/lib/middleman-deploy/commands.rb index e38c66d..f5b1db9 100644 --- a/lib/middleman-deploy/commands.rb +++ b/lib/middleman-deploy/commands.rb @@ -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 diff --git a/lib/middleman-deploy/extension.rb b/lib/middleman-deploy/extension.rb index 8de611e..f7b05a5 100644 --- a/lib/middleman-deploy/extension.rb +++ b/lib/middleman-deploy/extension.rb @@ -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