Class: Lazycuke::App

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/lazycuke/app.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/lazycuke/app.rb', line 8

def self.source_root
  File.expand_path('../../scaffold', File.dirname(__FILE__))
end

Instance Method Details

#setupObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/lazycuke/app.rb', line 18

def setup
  generate_rakefile
  copy_file "features/test.feature"
  copy_file "Gemfile"
  copy_file "cucumber.yml"
  copy_file "README.md"
  copy_file "features/support/env.rb"
  copy_file "features/support/hooks.rb"
  copy_file "features/step_definitions/steps.rb"
  init_gitignore
end

#versionObject



13
14
15
# File 'lib/lazycuke/app.rb', line 13

def version
  say Lazycuke::VERSION
end