Class: Kitchen::Generator::Init

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/kitchen/generator/init.rb

Overview

A project initialization generator, to help prepare a cookbook project for testing with Kitchen.

Author:

Instance Method Summary collapse

Instance Method Details

#initObject

Invoke the command.



56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/kitchen/generator/init.rb', line 56

def init
  self.class.source_root(Kitchen.source_root.join("templates", "init"))

  create_kitchen_yaml
  create_chefignore
  prepare_rakefile
  prepare_thorfile
  create_test_dir
  prepare_gitignore
  prepare_gemfile
  display_bundle_message
end