Sha256: 6d1519f91051fc43d63b78c893d6f58d4da53edc369cb8a51598505bf0f2f730

Contents?: true

Size: 1.04 KB

Versions: 23

Compression:

Stored size: 1.04 KB

Contents

require 'rbconfig'
require 'cucumber/version'

# This generator bootstraps a Rails project for use with Cucumber
class CucumberGenerator < RubiGen::Base
  DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'],
                              Config::CONFIG['ruby_install_name'])

  def manifest
    record do |m|
      m.directory 'features/step_definitions'
      m.template  'cucumber_environment.rb', 'config/environments/cucumber.rb',
        :assigns => { :cucumber_version => ::Cucumber::VERSION::STRING }

      m.directory 'features/support'

      #if options[:spork]
      #  m.template  'spork_env.rb',     'features/support/env.rb'
      #else
      m.template  'env.rb',           'features/support/env.rb'
      #end

      m.directory 'tasks'
      m.template  'cucumber.rake',    '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

23 entries across 23 versions & 5 rubygems

Version Path
kennethkalmer-daemon-kit-0.1.7.10 daemon_generators/cucumber/cucumber_generator.rb
kennethkalmer-daemon-kit-0.1.7.7 daemon_generators/cucumber/cucumber_generator.rb
kennethkalmer-daemon-kit-0.1.7.8 daemon_generators/cucumber/cucumber_generator.rb
kennethkalmer-daemon-kit-0.1.7.9 daemon_generators/cucumber/cucumber_generator.rb
queso-daemon-kit-0.1.7.10 daemon_generators/cucumber/cucumber_generator.rb
skaar-daemon-kit-0.1.7.10 daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.13.0 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.12.2 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.12.1 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.12.0 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.11.1 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.11.0 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
daemon-kit-0.1.7.12 daemon_generators/cucumber/cucumber_generator.rb
daemon-kit-0.1.7.11 daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.10.1 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.10.0 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.9.2 vendor/daemon_kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.9.1 vendor/daemon-kit/daemon_generators/cucumber/cucumber_generator.rb
apphunkd-0.9.0 vendor/daemon-kit/daemon_generators/cucumber/cucumber_generator.rb
daemon-kit-0.1.7.10 daemon_generators/cucumber/cucumber_generator.rb