58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# File 'lib/berkshelf/cookbook_generator.rb', line 58
def generate
empty_directory target.join('files/default')
empty_directory target.join('templates/default')
empty_directory target.join('attributes')
empty_directory target.join('definitions')
empty_directory target.join('libraries')
empty_directory target.join('providers')
empty_directory target.join('recipes')
empty_directory target.join('resources')
template 'default_recipe.erb', target.join('recipes/default.rb')
template 'metadata.rb.erb', target.join('metadata.rb')
template license_file, target.join('LICENSE')
template 'README.md.erb', target.join('README.md')
Berkshelf::InitGenerator.new([target], options.merge(default_options)).invoke_all
end
|