Exception: DreamOps::ChefSoloNotInstalledError
- Inherits:
-
DreamOpsError
- Object
- StandardError
- DreamOpsError
- DreamOps::ChefSoloNotInstalledError
- Defined in:
- lib/dream-ops/errors.rb
Instance Method Summary collapse
-
#initialize(target) ⇒ ChefSoloNotInstalledError
constructor
A new instance of ChefSoloNotInstalledError.
- #to_s ⇒ Object
Methods inherited from DreamOpsError
Constructor Details
#initialize(target) ⇒ ChefSoloNotInstalledError
Returns a new instance of ChefSoloNotInstalledError.
72 73 74 |
# File 'lib/dream-ops/errors.rb', line 72 def initialize(target) @target = target end |
Instance Method Details
#to_s ⇒ Object
76 77 78 79 80 81 82 |
# File 'lib/dream-ops/errors.rb', line 76 def to_s [ "chef-solo not installed on target \"#{@target}\". To initialize chef-solo, run:", "", "dream init solo -t #{@target} -i #{DreamOps.ssh_key}", ].join("\n") end |