Class: Fluence::Ci::Tools::Runner
- Inherits:
-
Object
- Object
- Fluence::Ci::Tools::Runner
- Includes:
- Steps
- Defined in:
- lib/fluence/ci/tools/runner.rb
Overview
Minimal orchestrator that mirrors the step(label, command)
interface of ActiveSupport::ContinuousIntegration so the same
Steps mixin composes against either
host. Used by the rake task installed in pure gems (where
ActiveSupport::ContinuousIntegration isn't available).
Constant Summary
Constants included from Steps
Instance Method Summary collapse
-
#initialize(io: $stdout) ⇒ Runner
constructor
Build a fresh runner with no recorded steps yet.
-
#report! ⇒ void
Print the final report and raise
SystemExit(1)on failure so the rake task / CLI propagates a non-zero exit status to CI. -
#step(label, command) ⇒ void
Run a single command as a CI step.
-
#success? ⇒ Boolean
Whether every recorded step succeeded so far.
Methods included from Steps
#all, #codequality, #docs, #lint, #security, #tests
Constructor Details
#initialize(io: $stdout) ⇒ Runner
Build a fresh runner with no recorded steps yet.
Instance Method Details
#report! ⇒ void
This method returns an undefined value.
Print the final report and raise SystemExit(1) on failure
so the rake task / CLI propagates a non-zero exit status to
CI. No-op return on success.
#step(label, command) ⇒ void
This method returns an undefined value.
Run a single command as a CI step. Tracks success/failure in
@failures so #report! can decide whether to exit 1.
#success? ⇒ Boolean
Whether every recorded step succeeded so far.