Sha256: 035add12f0d598c211f6bf36f8a1cded8c367609b3ca19d4d7b6cf5f5ce02517

Contents?: true

Size: 413 Bytes

Versions: 8

Compression:

Stored size: 413 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.3.2 lib/generators/cucumber_generator.rb
ruby_raider-0.3.1 lib/generators/cucumber_generator.rb
ruby_raider-0.3.0 lib/generators/cucumber_generator.rb
ruby_raider-0.2.9 lib/generators/cucumber_generator.rb
ruby_raider-0.2.8 lib/generators/cucumber_generator.rb
ruby_raider-0.2.7 lib/generators/cucumber_generator.rb
ruby_raider-0.2.6 lib/generators/cucumber_generator.rb
ruby_raider-0.2.5 lib/generators/cucumber_generator.rb