gaptool-client 0.8.0.pre.alpha8 → 0.8.0.pre.alpha9

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: 31edaa757612f83e1cbbddb7b5119e2cb18b8328
4
- data.tar.gz: c62d261c8fdeb58b2e1f8ece9fe8e604815f7a46
3
+ metadata.gz: 5eb227c335b95b93411e1446529c5da13437e753
4
+ data.tar.gz: 870b19b48fa7ae86a5f701153e0277b44dfb0213
5
5
  SHA512:
6
- metadata.gz: bc2361ab643b2f58d887c532bc57a63ef394f03d9acf6e4de6d45cb75d4607b7891a83097312cfff22cd48e029dd511fbb6f5da7632dc2fc6794c394bab1dd4a
7
- data.tar.gz: 8cd5ace2759f7e885b963f2c935f1f080bbcd5b7bdb98cc0a7938ba83c0854e120cea1f312c573876bcb531300912993e57bf999ed04a918adbc785a87d79c18
6
+ metadata.gz: b2e6a9fde7bd8dc82e2712e96e694e25a46f7a17084c42e04e0655989e8a6ba863170f0e392975d060972061efe1d69384eb3ba11ab21330b872c8c0d7ae8771
7
+ data.tar.gz: a382e833341ba9f73f7a16a5b8d9c717c6dae977e3ef82113cc0e005b1554ee20f7249f1877557520a96810a473b092c7cc7d784b9b15fbabbbf949321e4d05f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0-alpha8
1
+ 0.8.0-alpha9
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
- # rubocop:disable Metrics/LineLength, Lint/Eval
2
+ # rubocop:disable Metrics/LineLength
3
3
  #
4
4
  require 'rainbow'
5
5
  require 'json'
@@ -224,20 +224,12 @@ module Gaptool
224
224
  runlist = ['recipe[main]']
225
225
  elsif node['chef_runlist'].is_a? Array
226
226
  runlist = node['chef_runlist']
227
- else
228
- runlist = eval(node['chef_runlist'])
229
227
  end
230
228
  json = {
231
- 'this_server' => "#{node['role']}-#{node['environment']}-#{node['instance']}",
232
229
  'role' => node['role'],
233
230
  'environment' => node['environment'],
234
- 'app_user' => node['appuser'],
235
231
  'run_list' => runlist,
236
- 'hostname' => node['hostname'],
237
- 'instance' => node['instance'],
238
- 'zone' => node['zone'],
239
- 'itype' => node['itype'],
240
- 'apps' => eval(node['apps'] || '[]'),
232
+ 'apps' => node['apps'] || [],
241
233
  'gaptool' => {
242
234
  'user' => ENV['GT_USER'],
243
235
  'key' => ENV['GT_KEY'],
@@ -316,7 +308,7 @@ EOS
316
308
  res
317
309
  end
318
310
  nodes = nodes.map do |x|
319
- x['apps'] = eval(x['apps'])
311
+ x['apps'] = x['apps']
320
312
  x['apps_to_deploy'] = (Set.new(x['apps']) & app_set).to_a
321
313
  x['rollback'] = rollback?
322
314
  x['branch'] = branch || 'master'
@@ -336,19 +328,11 @@ EOS
336
328
  runlist = ['recipe[deploy]']
337
329
  elsif node['chef_runlist'].is_a? Array
338
330
  runlist = node['chef_runlist']
339
- else
340
- runlist = eval(node['chef_runlist'])
341
331
  end
342
332
  json = {
343
- 'this_server' => "#{node['role']}-#{node['environment']}-#{node['instance']}",
344
333
  'role' => node['role'],
345
334
  'environment' => node['environment'],
346
- 'app_user' => node['appuser'],
347
335
  'run_list' => runlist,
348
- 'hostname' => node['hostname'],
349
- 'instance' => node['instance'],
350
- 'zone' => node['zone'],
351
- 'itype' => node['itype'],
352
336
  'apps' => node['apps'],
353
337
  'deploy_apps' => node['apps_to_deploy'],
354
338
  'rollback' => node['rollback'],
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.8.0.pre.alpha8
4
+ version: 0.8.0.pre.alpha9
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: 2015-12-31 00:00:00.000000000 Z
13
+ date: 2016-01-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json