spec/support/generators.rb in stove-3.2.1 vs spec/support/generators.rb in stove-3.2.2

- old
+ new

@@ -65,10 +65,15 @@ File.open(root.join('files', 'default', 'example.txt'), 'wb') do |f| f.write <<-EOH.gsub(/^ {11}/, '') This is a file with some text EOH end + File.open(root.join('files', 'default', '.authorized_keys'), 'wb') do |f| + f.write <<-EOH.gsub(/^ {11}/, '') + id-rsa ABC123 + EOH + end File.open(root.join('libraries', 'magic.rb'), 'wb') do |f| f.write <<-EOH.gsub(/^ {11}/, '') class Chef class Resource class Monkey @@ -105,9 +110,14 @@ EOH end File.open(root.join('templates', 'default', 'another.text.erb'), 'wb') do |f| f.write <<-EOH.gsub(/^ {11}/, '') # Comment? + EOH + end + File.open(root.join('templates', 'default', '.env.erb'), 'wb') do |f| + f.write <<-EOH.gsub(/^ {11}/, '') + ENV['FOO'] = 'BAR' EOH end # Return the root root