Permalink
Browse files

Merge pull request #181 from thousandsofthem/all-cluster-support

Add "cluster" param support for the cli
  • Loading branch information...
2 parents f234cd4 + 0c6fa04 commit c8e4570f3e7b31c5c1a660f1d4e5259a58877c04 @rkononov rkononov committed May 15, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/iron_worker
View
6 bin/iron_worker
@@ -175,6 +175,10 @@ elsif command == 'queue' || command == 'schedule'
options[:delay] = v
end
+ opts.on('--cluster CLUSTER', String, 'Run task on selected cluster') do |v|
+ options[:cluster] = v
+ end
+
if command == 'queue'
opts.on('--wait', Integer, 'wait for task to complete and print log') do |v|
options[:wait] = true
@@ -452,4 +456,4 @@ elsif command == 'info'
elsif command == 'stacks'
@cli.stacks_list
-end
+end

0 comments on commit c8e4570

Please sign in to comment.