Module: Spinach::Generators
- Defined in:
- lib/spinach/generators.rb,
lib/spinach/generators/feature_generator.rb
Overview
Spinach generators are a set of utils that auto-generates example features given some parsed feature data.
Defined Under Namespace
Classes: FeatureGenerator, FeatureGeneratorException, StepGenerator
Class Method Summary collapse
-
.run(files) ⇒ Object
generates steps for features.
Class Method Details
.run(files) ⇒ Object
generates steps for features
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/spinach/generators.rb', line 9 def self.run(files) successful = true files.each do |file| feature = Parser.open_file(file).parse begin FeatureGenerator.new(feature).store rescue FeatureGeneratorException => e successful = false $stderr.puts e end end successful end |