lib/soloist/chef_config_generator.rb in soloist-0.9.4 vs lib/soloist/chef_config_generator.rb in soloist-0.9.5
- old
+ new
@@ -7,10 +7,11 @@
def initialize(config, relative_path_to_soloistrc)
@recipes = []
@cookbook_paths = []
@cookbook_gems = []
@preserved_environment_variables = %w{PATH BUNDLE_PATH GEM_HOME GEM_PATH RAILS_ENV RACK_ENV}
+ @node_attributes = config['node_attributes'] || {}
merge_config(config, relative_path_to_soloistrc)
end
attr_reader :preserved_environment_variables, :cookbook_paths, :cookbook_gems
attr_accessor :recipes
@@ -63,10 +64,10 @@
end
def json_hash
{
"recipes" => @recipes
- }
+ }.merge(@node_attributes)
end
def json_file
json_hash.to_json
end
\ No newline at end of file