11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/jackchop/generators/init_generator.rb', line 11
def generate
template "kitchen.yml.erb", target.join('.kitchen.yml')
template "travis.yml.erb", target.join('.travis.yml')
template "Rakefile.erb", target.join("Rakefile")
template "Strainerfile.erb", target.join("Strainerfile")
template "Gemfile.erb", target.join("Gemfile"), :force => true
chef_spec = ChefSpec::Knife::CookbookCreateSpecs.new
chef_spec.config[:cookbook_path] = File.dirname(target)
chef_spec.name_args[0] = File.basename(target)
chef_spec.run
end
|