Module: Gauge::Executor Private
- Defined in:
- lib/executor.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .execute_hooks(hooks, currentExecutionInfo) ⇒ Object private
- .execute_step(step, args) ⇒ Object private
- .load_steps(steps_implementation_dir) ⇒ Object private
Class Method Details
.execute_hooks(hooks, currentExecutionInfo) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/executor.rb', line 36 def self.execute_hooks(hooks, currentExecutionInfo) begin hooks.each do |hook| hook.call(currentExecutionInfo) end return nil rescue Exception => e return e end end |
.execute_step(step, args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 32 33 34 |
# File 'lib/executor.rb', line 27 def self.execute_step(step, args) block = MethodCache.get_step step if args.size == 1 block.call(args[0]) else block.call(args) end end |
.load_steps(steps_implementation_dir) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/executor.rb', line 23 def self.load_steps(steps_implementation_dir) Dir["#{steps_implementation_dir}/**/*.rb"].each { |x| require x } end |