Sha256: f916cb1b597e105103ae0dc65b0a61e305959233914c5d6b2087217b0ed88ae7

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

require_relative 'generator'

module RubyRaider
  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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby_raider-0.2.4 lib/generators/cucumber_generator.rb
ruby_raider-0.2.3 lib/generators/cucumber_generator.rb
ruby_raider-0.2.2 lib/generators/cucumber_generator.rb
ruby_raider-0.2.1 lib/generators/cucumber_generator.rb
ruby_raider-0.2.0 lib/generators/cucumber_generator.rb