Exception: Browserctl::Workflow::Promoter::IneligibleError
- Inherits:
-
StandardError
- Object
- StandardError
- Browserctl::Workflow::Promoter::IneligibleError
- Defined in:
- lib/browserctl/workflow/promoter.rb
Instance Attribute Summary collapse
-
#streak ⇒ Object
readonly
Returns the value of attribute streak.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(workflow:, streak:, threshold:) ⇒ IneligibleError
constructor
A new instance of IneligibleError.
Constructor Details
#initialize(workflow:, streak:, threshold:) ⇒ IneligibleError
Returns a new instance of IneligibleError.
21 22 23 24 25 26 27 28 29 |
# File 'lib/browserctl/workflow/promoter.rb', line 21 def initialize(workflow:, streak:, threshold:) @streak = streak @threshold = threshold super( "workflow '#{workflow}' has #{streak} clean --check run(s); " \ "needs #{threshold}. Run `browserctl workflow run #{workflow} --check` " \ "until clean, or pass --force to override." ) end |
Instance Attribute Details
#streak ⇒ Object (readonly)
Returns the value of attribute streak.
19 20 21 |
# File 'lib/browserctl/workflow/promoter.rb', line 19 def streak @streak end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
19 20 21 |
# File 'lib/browserctl/workflow/promoter.rb', line 19 def threshold @threshold end |