Exception: Browserctl::Workflow::Promoter::IneligibleError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/browserctl/workflow/promoter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#streakObject (readonly)

Returns the value of attribute streak.



19
20
21
# File 'lib/browserctl/workflow/promoter.rb', line 19

def streak
  @streak
end

#thresholdObject (readonly)

Returns the value of attribute threshold.



19
20
21
# File 'lib/browserctl/workflow/promoter.rb', line 19

def threshold
  @threshold
end