Sha256: 6f82857bf7cdcbb8b6a53ef282c8af8deae4e8d5a37847d017367d72e75b47a1
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 Bytes
Contents
require 'rbconfig' # This generator bootstraps a Rails project for use with Cucumber class InstallCucumberGenerator < RubiGen::Base DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) attr_reader :project_name def initialize(runtime_args, runtime_options = {}) super @project_name = File.basename(destination_root) end def manifest record do |m| script_options = { :chmod => 0755, :shebang => options[:shebang] == DEFAULT_SHEBANG ? nil : options[:shebang] } m.directory 'features/steps' m.template 'env.rb', 'features/steps/env.rb' m.directory 'tasks' m.file 'cucumber.rake', 'tasks/cucumber.rake' m.directory 'script' m.file 'cucumber', 'script/cucumber', script_options end end protected def banner "Usage: #{$0} cucumber" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newgem-0.28.0 | rubygems_generators/install_cucumber/install_cucumber_generator.rb |