exe/caravan in caravan-0.5.1 vs exe/caravan in caravan-0.5.2

- old
+ new

@@ -28,10 +28,15 @@ else options[:ignore] = [value] end end + options[:once] = false + opts.on("-o", "--once", "Deploy for once") do + options[:once] = true + end + options[:debug] = false opts.on("-b", "--debug", "Debug mode") do options[:debug] = true end @@ -45,10 +50,10 @@ Caravan.dump_default_conf end option_parser.parse!(ARGV) merged_conf = Caravan::Config.merge(options, Caravan.process_conf(options[:src])) -if merged_conf.key?('src') && merged_conf.key?('dst') && merged_conf.key?('deploy_mode') +if merged_conf.key?("src") && merged_conf.key?("dst") && merged_conf.key?("deploy_mode") Caravan.start(merged_conf) else - Caravan::Message.error('No src, dst, deploy_mode specified. Cannot deploy.') + Caravan::Message.error("No src, dst, deploy_mode specified. Cannot deploy.") end