Exception: MotherBrain::ProvisionerNotStarted

Inherits:
ProvisionError show all
Defined in:
lib/mb/errors.rb

Constant Summary

Constants inherited from MBError

MBError::DEFAULT_EXIT_CODE

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#messageObject



594
595
596
597
# File 'lib/mb/errors.rb', line 594

def message
  "No provisioner registered or started that matches the ID: '#{provisioner_id}'.\n"
  "Registered provisioners are: #{MB::Provisioner.all.map(&:provisioner_id).join(', ')}"
end