class EmptyCucumber::Create

Public Class Methods

source_root() click to toggle source
# File lib/generators/create.rb, line 10
def self.source_root
  File.dirname(__FILE__) + "/templates/"
end

Public Instance Methods

copy_cucumber_yml() click to toggle source
# File lib/generators/create.rb, line 33
def copy_cucumber_yml
  template "cucumber.yml.tt", "#{name}/cucumber.yml"
end
copy_env() click to toggle source
# File lib/generators/create.rb, line 21
def copy_env
  template "env.rb.tt", "#{name}/features/support/env.rb"
end
copy_feature_template() click to toggle source
# File lib/generators/create.rb, line 29
def copy_feature_template
  template "feature_example.feature.tt", "#{name}/features/feature_example.feature"
end
copy_gemfile() click to toggle source
# File lib/generators/create.rb, line 45
def copy_gemfile
  template "Gemfile.tt", "#{name}/Gemfile"
end
copy_hooks() click to toggle source
# File lib/generators/create.rb, line 25
def copy_hooks
  template "hooks.rb.tt", "#{name}/features/support/hooks.rb"
end
copy_rakefile_file() click to toggle source
# File lib/generators/create.rb, line 41
def copy_rakefile_file
  template "rakefile.rb.tt", "#{name}/Rakefile"
end
copy_steps_def_file() click to toggle source
# File lib/generators/create.rb, line 37
def copy_steps_def_file
  template "steps_example.rb.tt", "#{name}/features/step_definitions/steps_example.rb"
end
create_folders() click to toggle source
# File lib/generators/create.rb, line 14
def create_folders
  empty_directory("#{name}/features")
  empty_directory("#{name}/features/support")
  empty_directory("#{name}/features/step_definitions")
  empty_directory("#{name}/features/support/pages")
end