Class: Dogfood::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/dogfood/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_pack_fileObject



10
11
12
# File 'lib/generators/dogfood/install/install_generator.rb', line 10

def create_pack_file
  template "dogfood.rb.tt", "config/dogfood.rb"
end

#create_scenarios_dirObject



14
15
16
17
# File 'lib/generators/dogfood/install/install_generator.rb', line 14

def create_scenarios_dir
  empty_directory "config/dogfood"
  template "example_scenario.yml.tt", "config/dogfood/example.yml"
end

#create_smoke_testObject



19
20
21
# File 'lib/generators/dogfood/install/install_generator.rb', line 19

def create_smoke_test
  template "yml_smoke_test.rb.tt", "test/dogfood/yml_smoke_test.rb"
end

#show_readmeObject



23
24
25
26
27
# File 'lib/generators/dogfood/install/install_generator.rb', line 23

def show_readme
  say "\nDogfood installed. Edit config/dogfood.rb to register your"
  say "step modules, then drop scenarios into config/dogfood/*.yml."
  say "Run `bin/rails dogfood --list` to see them.\n"
end