gaptool-client 0.6.14 → 0.6.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/gaptool-client.rb +8 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ed7aec78e38e775659a5c972701836ba26bd0bf
4
- data.tar.gz: 81242d83526297e991438283510aa26398f7d982
3
+ metadata.gz: fac8dcd0ec8402c3f96b59cf6e5ebb0693682deb
4
+ data.tar.gz: 69ee23014877681f163ab714cbcf8d2b31b744d6
5
5
  SHA512:
6
- metadata.gz: fb71d1eb887b8efe99d8e8ecdfb0a4b61976b81a6168f07bdda6eed75113ee3fd212276fcd3b6a66fecc93f120db9b5b6ae34c2517763352f1f501dfe8d88ae6
7
- data.tar.gz: 61978da8b616780f2f94e6ece704adc5d3726aa59462a6925e5dd0d5e7098ce159da73ed35712a7c8006e8a238d4e1166670cb44f137d07a6e1071b80ab6d4fb
6
+ metadata.gz: debe75218d4340e2f49bfc39ab40f4fbee4feec2ab9e01e937ac95ae764280c9573cb5377e0eb726a373263b5cb685507f4d02be9059b65e2ac60c9598adeaeb
7
+ data.tar.gz: 363971d93fc824a1c69d41bea7b551eff91c8fd423959e4f4d22134fa7688a8af7f2f2cdcf71c92597ef6873a23591f2082f88f269a0e0431e6acf966a0f70d1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.14
1
+ 0.6.15
@@ -297,12 +297,19 @@ module Gaptool
297
297
  nodes = $api.getappnodes(app, environment)
298
298
  end
299
299
  nodes.peach do |node|
300
+ if node['chef_runlist'].nil?
301
+ runlist = ['recipe[deploy]']
302
+ elsif node['chef_runlist'].is_a? Array
303
+ runlist = node['chef_runlist']
304
+ else
305
+ runlist = eval(node['chef_runlist'])
306
+ end
300
307
  json = {
301
308
  'this_server' => "#{node['role']}-#{environment}-#{node['instance']}",
302
309
  'role' => node['role'],
303
310
  'environment' => environment,
304
311
  'app_user' => node['appuser'],
305
- 'run_list' => [ "recipe[deploy]" ],
312
+ 'run_list' => runlist,
306
313
  'hostname' => node['hostname'],
307
314
  'instance' => node['instance'],
308
315
  'zone' => node['zone'],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaptool-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.14
4
+ version: 0.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Laurita
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-09 00:00:00.000000000 Z
13
+ date: 2014-12-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json