Class: Appboost::ChefSoloGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/appboost/chef_solo_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



42
43
44
45
46
47
48
49
# File 'lib/generators/appboost/chef_solo_generator.rb', line 42

def copy_files
  template "Cheffile.erb",    "chef/Cheffile"
  template "Vagrantfile.erb", "chef/Vagrantfile"
  template "node.json.erb",   "chef/nodes/#{host}.json"
  template "user.json.erb",   "chef/data_bags/users/#{options[:app_user]}.json"

  copy_file "chef.gitignore", "chef/.gitignore"
end