# File lib/chef/knife/environment_from_file.rb, line 39 def environments_path @environments_path ||= "environments" end
# File lib/chef/knife/environment_from_file.rb, line 43 def find_all_environments loader.find_all_objects("./#{environments_path}/") end
# File lib/chef/knife/environment_from_file.rb, line 47 def load_all_environments environments = find_all_environments if environments.empty? ui.fatal("Unable to find any environment files in '#{environments_path}'") exit(1) end environments.each do |env| load_environment(env) end end
# File lib/chef/knife/environment_from_file.rb, line 58 def load_environment(env) updated = loader.load_from("environments", env) updated.save output(format_for_display(updated)) if config[:print_after] ui.info("Updated Environment #{updated.name}") end
Generated with the Darkfish Rdoc Generator 2.