bin/wd in whiskey_disk-0.6.4 vs bin/wd in whiskey_disk-0.6.10
- old
+ new
@@ -13,10 +13,14 @@
opts.on('-p=TARGET', '--path=TARGET', "configuration path") do |path|
options[:path] = path
end
+ opts.on('-o=DOMAIN', '--only=DOMAIN', "limit deployment to this domain") do |domain|
+ options[:only] = domain
+ 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
@@ -30,9 +34,10 @@
command = rest.first
raise op.to_s unless ['deploy', 'setup'].include?(command)
ENV['to'] = options[:target]
ENV['path'] = options[:path]
+ENV['only'] = options[:only]
ENV['check'] = options[:check]
if command == 'deploy'
Rake::Task['deploy:now'].invoke
else
\ No newline at end of file