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