class Chef::Environment
Attributes
logger[R]
Public Instance Methods
generate_json(part)
click to toggle source
# File lib/chef/knife/chop/chef_environment.rb, line 32 def generate_json(part) self.to_json end
generate_rb(part)
click to toggle source
# File lib/chef/knife/chop/chef_environment.rb, line 37 def generate_rb(part) src = [] src << "name '#{@name}'" src << "description '#{@description}'" src << part.hash_to_rb('cookbook_versions') src << part.hash_to_rb('default_attributes') src << part.hash_to_rb('override_attributes') src.join("\n") end