bin/wd in whiskey_disk-0.5.0 vs bin/wd in whiskey_disk-0.5.2
- old
+ new
@@ -13,10 +13,14 @@
opts.on('-p=TARGET', '--path=TARGET', "configuration path") do |path|
options[:path] = path
end
+ opts.on('-c', '--check', "do a staleness check before deploying") do |path|
+ options[:check] = 'true'
+ end
+
opts.on_tail('-h', '--help', 'show this message') do
raise opts.to_s
end
end
@@ -26,9 +30,10 @@
command = rest.first
raise op.to_s unless ['deploy', 'setup'].include?(command)
ENV['to'] = options[:target]
ENV['path'] = options[:path]
+ENV['check'] = options[:check]
if command == 'deploy'
Rake::Task['deploy:now'].invoke
else
Rake::Task['deploy:setup'].invoke
\ No newline at end of file