module SousChef
Constants
- CONFIG_FILE
- CONFIG_TEMPLATE
Public Instance Methods
config_file_location()
click to toggle source
# File lib/sous-chef.rb, line 8 def config_file_location CONFIG_FILE end
config_template_location()
click to toggle source
# File lib/sous-chef.rb, line 12 def config_template_location CONFIG_TEMPLATE end
create_config()
click to toggle source
# File lib/sous-chef.rb, line 16 def create_config if File.exists?(config_file_location) puts "nodes.yml already exists" else puts "Coping example nodes.yml and placing in #{config_file_location}" FileUtils.cp(config_template_location, config_file_location) end end