Class: Tod::Runner
- Inherits:
-
Object
- Object
- Tod::Runner
- Defined in:
- lib/tod/runner.rb
Instance Method Summary collapse
-
#initialize(travis, executor: Executor.new, environment: ENV) ⇒ Runner
constructor
A new instance of Runner.
- #run(section) ⇒ Object
Constructor Details
Instance Method Details
#run(section) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/tod/runner.rb', line 12 def run(section) setup_env @travis.section(section).each do |command| result = @executor.execute(command) { |line| puts line } if result.error? return result.code end end result_code = 0 end |