Class: Praegustator::Executor
- Inherits:
-
Object
- Object
- Praegustator::Executor
- Defined in:
- lib/praegustator/executor.rb
Instance Method Summary collapse
- #execute(recipes) ⇒ Object
- #execute_check(query, check) ⇒ Object
-
#initialize ⇒ Executor
constructor
A new instance of Executor.
Constructor Details
#initialize ⇒ Executor
Returns a new instance of Executor.
5 6 |
# File 'lib/praegustator/executor.rb', line 5 def initialize end |
Instance Method Details
#execute(recipes) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/praegustator/executor.rb', line 7 def execute(recipes) recipes.each do |recipe| suits = Praegustator::Dsl.new.parse_file(recipe) suits.each(&:execute) end end |
#execute_check(query, check) ⇒ Object
13 14 15 16 17 |
# File 'lib/praegustator/executor.rb', line 13 def execute_check(query,check) suite = Praegustator::TestSuite.new(query) suite.check check suite.execute end |