Class: SeedFu::Runner
- Inherits:
-
Object
- Object
- SeedFu::Runner
- Defined in:
- lib/seed-fu/runner.rb
Overview
Runs seed files.
It is not recommended to use this class directly. Instead, use SeedFu.seed, which creates an instead of Runner and calls #run.
Instance Method Summary collapse
-
#initialize(fixture_paths = nil, filter = nil) ⇒ Runner
constructor
A new instance of Runner.
-
#run ⇒ Object
Run the seed files.
Constructor Details
Instance Method Details
#run ⇒ Object
Run the seed files.
22 23 24 25 26 27 28 |
# File 'lib/seed-fu/runner.rb', line 22 def run puts "\n== Filtering seed files against regexp: #{@filter.inspect}" if @filter && !SeedFu.quiet filenames.each do |filename| run_file(filename) end end |