Exception: MotherBrain::ProvisionerNotStarted
- Inherits:
-
ProvisionError
- Object
- StandardError
- MBError
- ProvisionError
- MotherBrain::ProvisionerNotStarted
- Defined in:
- lib/mb/errors.rb
Constant Summary
Constants inherited from MBError
Instance Attribute Summary collapse
-
#provisioner_id ⇒ Object
readonly
Returns the value of attribute provisioner_id.
Instance Method Summary collapse
-
#initialize(provisioner_id) ⇒ ProvisionerNotStarted
constructor
A new instance of ProvisionerNotStarted.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(provisioner_id) ⇒ ProvisionerNotStarted
Returns a new instance of ProvisionerNotStarted.
590 591 592 |
# File 'lib/mb/errors.rb', line 590 def initialize(provisioner_id) @provisioner_id = provisioner_id end |
Instance Attribute Details
#provisioner_id ⇒ Object (readonly)
Returns the value of attribute provisioner_id.
588 589 590 |
# File 'lib/mb/errors.rb', line 588 def provisioner_id @provisioner_id end |
Instance Method Details
#message ⇒ Object
594 595 596 597 |
# File 'lib/mb/errors.rb', line 594 def "No provisioner registered or started that matches the ID: '#{provisioner_id}'.\n" "Registered provisioners are: #{MB::Provisioner.all.map(&:provisioner_id).join(', ')}" end |