Class: CucumberStandalone
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- CucumberStandalone
- Includes:
- Thor::Actions
- Defined in:
- lib/cucumber_standalone.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/cucumber_standalone.rb', line 9 def self.source_root File.join(File.dirname(__FILE__), '..', 'templates') end |
Instance Method Details
#create_stuff ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cucumber_standalone.rb', line 13 def create_stuff self.destination_root = File.(dir_name, destination_root) empty_directory '.' FileUtils.cd(destination_root) empty_directory 'features' inside 'features' do template 'example.feature', 'example.feature' empty_directory 'support' template 'support/env.rb' template 'step_definitions/web_steps.rb' end end |