Class: AllGreen::Runner
- Inherits:
-
Object
- Object
- AllGreen::Runner
- Defined in:
- lib/all_green/runner.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Runner
Returns a new instance of Runner.
5 6 7 8 9 10 11 12 |
# File 'lib/all_green/runner.rb', line 5 def initialize( = {}) @options = @options[:order] ||= [:rspec, :rails_tests, :cucumber, :spinach] @engines = [] load_engines sort_engines end |
Instance Method Details
#run ⇒ Object
14 15 16 |
# File 'lib/all_green/runner.rb', line 14 def run @engines.map(&:run).all? end |