Sha256: 53f889dd31a9a162e7977c495ae4561e06296e87624d7ed66cbdd7629ca2746d

Contents?: true

Size: 859 Bytes

Versions: 22

Compression:

Stored size: 859 Bytes

Contents

require 'rbconfig'

# This generator bootstraps a Rails project for use with Cucumber
class CucumberGenerator < Rails::Generator::Base
  DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'],
                              Config::CONFIG['ruby_install_name'])
  def manifest
    record do |m|
      m.directory 'features/step_definitions'
      m.file      'webrat_steps.rb', 'features/step_definitions/webrat_steps.rb'

      m.directory 'features/support'
      m.file      'env.rb',           'features/support/env.rb'

      m.directory 'lib/tasks'
      m.file      'cucumber.rake',    'lib/tasks/cucumber.rake'

      m.file      'cucumber',         'script/cucumber', {
        :chmod => 0755, :shebang => options[:shebang] == DEFAULT_SHEBANG ? nil : options[:shebang]
      }
    end
  end

protected

  def banner
    "Usage: #{$0} cucumber"
  end

end

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.11 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.12 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.13.2 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.13.3 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.13 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.14.1 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.14.2 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.15 rails_generators/cucumber/cucumber_generator.rb
aslakhellesoy-cucumber-0.1.9 rails_generators/cucumber/cucumber_generator.rb
bts-cucumber-0.1.13.1 rails_generators/cucumber/cucumber_generator.rb
bts-cucumber-0.1.13.2 rails_generators/cucumber/cucumber_generator.rb
bts-cucumber-0.1.13.3 rails_generators/cucumber/cucumber_generator.rb
jeffrafter-cucumber-0.1.10 rails_generators/cucumber/cucumber_generator.rb
jeffrafter-cucumber-0.1.12 rails_generators/cucumber/cucumber_generator.rb
cucumber-0.1.12 rails_generators/cucumber/cucumber_generator.rb
cucumber-0.1.13 rails_generators/cucumber/cucumber_generator.rb
cucumber-0.1.14 rails_generators/cucumber/cucumber_generator.rb
cucumber-0.1.11 rails_generators/cucumber/cucumber_generator.rb
cucumber-0.1.10 rails_generators/cucumber/cucumber_generator.rb