Sha256: 1c9e32c97bed846bb87f735c74b2743d52279f3156ecd364ab8fcceef4538b47

Contents?: true

Size: 412 Bytes

Versions: 8

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

require_relative 'generator'

class CucumberGenerator < Generator
  def generate_feature
    template('cucumber/feature.tt', "#{name}/features/login.feature")
  end

  def generate_steps
    template('cucumber/steps.tt', "#{name}/features/step_definitions/login_steps.rb")
  end

  def generate_env_file
    template('cucumber/env.tt', "#{name}/features/support/env.rb")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_raider-0.4.0 lib/generators/cucumber_generator.rb
ruby_raider-0.3.9 lib/generators/cucumber_generator.rb
ruby_raider-0.3.8 lib/generators/cucumber_generator.rb
ruby_raider-0.3.7 lib/generators/cucumber_generator.rb
ruby_raider-0.3.6 lib/generators/cucumber_generator.rb
ruby_raider-0.3.5 lib/generators/cucumber_generator.rb
ruby_raider-0.3.4 lib/generators/cucumber_generator.rb
ruby_raider-0.3.3 lib/generators/cucumber_generator.rb