Sha256: e16190d0efd8ae5f21ea82aa79851a23231e8f10748a62bccad9e0ce6f6cea47
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
require 'rbconfig' class CucumberGenerator < RubiGen::Base def initialize(runtime_args, runtime_options = {}) super @destination_root = File.expand_path('features') end def manifest record do |m| m.directory '' BASEDIRS.each{|path| m.directory path} m.template 'common_steps.rb', 'step_definitions/common_steps.rb' m.template 'env.rb', 'support/env.rb' m.template 'transformers.rb', 'support/transformers.rb' m.template 'example.feature', 'example.feature' end end protected def banner <<-EOS Creates cucumber features structure. EOS end BASEDIRS = %w( step_definitions support ) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
howitzer-0.0.3 | generators/cucumber/cucumber_generator.rb |
howitzer-0.0.1 | generators/cucumber/cucumber_generator.rb |