lib/middleman-deploy/commands.rb in middleman-deploy-0.0.1 vs lib/middleman-deploy/commands.rb in middleman-deploy-0.0.2

- old
+ new

@@ -31,11 +31,11 @@ user = shared_inst.options.user path = shared_inst.options.path # These only exists when the config.rb sets them! if (!host || !user || !path) - raise Thor::Error.new "You need to activate the deploy extension in config.rb " + raise Thor::Error.new "You need to activate the deploy extension in config.rb" end command = "rsync -avze '" + "ssh -p #{port}" + "' build/ #{user}@#{host}:#{path}" if options.has_key? "clean" @@ -43,10 +43,10 @@ else clean = shared_inst.options.clean end if clean - command += "--delete" + command += " --delete" end run command end