task-orchestrator 0.0.20 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a575962afbab66ac5c73f7778673f80ccfaa386b
4
- data.tar.gz: 8f327e8f6a3f5f2d7fa84a031c6747c56ad45f2d
3
+ metadata.gz: aa2d86a3d79e41343eaafc3276a643ffa04ac220
4
+ data.tar.gz: d5d5bc22f028565c668df489b4697d7c0a535cd7
5
5
  SHA512:
6
- metadata.gz: 6b0dce0179568b650dfe38b0f9b992b943eb5281bf2cab469151289db572e3f1ae0e6535220b96647d0b915470bbdd8ab4171a7a8c8d562c088ff4b02f048172
7
- data.tar.gz: f8ee24a41149e9a057292bf7983090df650deb09a778589d47d17e4fa758cb3187f970878e4dd2e42a672ea4efde0aeaa8f45b2b8c105e13a7a14775d6e575cd
6
+ metadata.gz: 4ac7183fc0991284c588691b139b68dc5f9e7a6a176316ce512791eb9357155a63201b2899415a01b7072cd5cffe41da00c0966a8e1af7e953f643dcb6cf7c7a
7
+ data.tar.gz: 25bb9862d674a14eb7b0219846c93317207d2eada25cf823b682c35cd1c4abbd3de04c9012d0758a49db45975a33995c19e2b231c12972cd8a55d5dfe6b2216e
@@ -135,6 +135,7 @@ module Orchestrator
135
135
  end
136
136
 
137
137
  def interpolate_command(command,pattern=/^(ENV|ARG|EXEC)\./)
138
+ command = command.to_s if command.is_a?(Integer)
138
139
  command.gsub(/:::([^:]*):::/) do
139
140
  match = $1
140
141
  invalid("interpolation type is not valid in this context - :::#{match}:::") if match !~ pattern and match =~ /^(ENV|ARG|EXEC)\./
@@ -204,7 +205,9 @@ module Orchestrator
204
205
  invalid("default envs must be hash") unless @state['defaults'][type.to_s].is_a?(Hash)
205
206
  @state['defaults'][type.to_s].each do|key,value|
206
207
  value = '' unless value
207
- invalid("default value for #{type} #{key} is invalid") unless value.is_a?(String)
208
+ if not value.is_a?(String) and not value.is_a?(Integer)
209
+ invalid("default value for #{type} #{key} is invalid")
210
+ end
208
211
  @defaults[type].instance_variable_set("@#{key}",interpolate_command(value,/^EXEC\./))
209
212
  end
210
213
  end
@@ -1,3 +1,3 @@
1
1
  module Orchestrator
2
- VERSION ||= '0.0.20'
2
+ VERSION ||= '0.0.23'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: task-orchestrator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Piavlo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-16 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pony