iron_worker_ng 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/bin/iron_worker +3 -3
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5
1
+ 0.9.6
data/bin/iron_worker CHANGED
@@ -61,7 +61,7 @@ if command == 'codes.create'
61
61
  end
62
62
 
63
63
  name = nil
64
- max_concurrency = nil
64
+ options = {}
65
65
 
66
66
  opts = OptionParser.new do |opts|
67
67
  opts.banner = "usage: iron_worker #{command} [OPTIONS]"
@@ -71,7 +71,7 @@ if command == 'codes.create'
71
71
  end
72
72
 
73
73
  opts.on('-c', '--max-concurrency CONCURENCY', Integer, 'max number of concurrent workers for this code package') do |v|
74
- max_concurrency = v
74
+ options[:max_concurrency] = v
75
75
  end
76
76
 
77
77
  env_opt(opts)
@@ -95,7 +95,7 @@ if command == 'codes.create'
95
95
 
96
96
  IronCore::Logger.info 'IronWorkerNG', "Worker '#{code.name}' upload started"
97
97
 
98
- client.codes.create(code, :max_concurrency => max_concurrency)
98
+ client.codes.create(code, options)
99
99
 
100
100
  IronCore::Logger.info 'IronWorkerNG', "Worker '#{code.name}' uploaded"
101
101
  elsif command == 'tasks.create' || command == 'schedules.create'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_worker_ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-20 00:00:00.000000000 Z
13
+ date: 2012-07-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: iron_core
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: -584784563
165
+ hash: 997707347
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements: