lib/gaptool-client.rb in gaptool-client-0.6.14 vs lib/gaptool-client.rb in gaptool-client-0.6.15

- old
+ new

@@ -295,15 +295,22 @@ nodes = [$api.getonenode(instance)] else nodes = $api.getappnodes(app, environment) end nodes.peach do |node| + if node['chef_runlist'].nil? + runlist = ['recipe[deploy]'] + elsif node['chef_runlist'].is_a? Array + runlist = node['chef_runlist'] + else + runlist = eval(node['chef_runlist']) + end json = { 'this_server' => "#{node['role']}-#{environment}-#{node['instance']}", 'role' => node['role'], 'environment' => environment, 'app_user' => node['appuser'], - 'run_list' => [ "recipe[deploy]" ], + 'run_list' => runlist, 'hostname' => node['hostname'], 'instance' => node['instance'], 'zone' => node['zone'], 'itype' => node['itype'], 'apps' => eval(node['apps']),