Exception: ForemanMaintain::Error::MultipleBeforeDetected

Inherits:
StandardError
  • Object
show all
Defined in:
lib/foreman_maintain/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(step_labels) ⇒ MultipleBeforeDetected

Returns a new instance of MultipleBeforeDetected.



16
17
18
# File 'lib/foreman_maintain/error.rb', line 16

def initialize(step_labels)
  @step_labels = step_labels
end

Instance Method Details

#messageObject



20
21
22
# File 'lib/foreman_maintain/error.rb', line 20

def message
  "multiple metadata detected instead of 1. \n before [#{@step_labels.join(', ')}]\n"
end