Class: Pantry::Chef::ConfigureChef

Inherits:
Pantry::Command
  • Object
show all
Defined in:
lib/pantry/chef/configure_chef.rb

Instance Method Summary collapse

Instance Method Details

#perform(message) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/pantry/chef/configure_chef.rb', line 6

def perform(message)
  @base_chef_dir = Pantry.root.join("chef")
  @etc_dir       = Pantry.root.join("etc", "chef")
  create_required_directories
  write_solo_rb
  write_node_json
  # TODO: Error handling response message?
  true
end