Exception: DreamOps::ChefSoloNotInstalledError

Inherits:
DreamOpsError
  • Object
show all
Defined in:
lib/dream-ops/errors.rb

Instance Method Summary collapse

Methods inherited from DreamOpsError

set_status_code

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_sObject



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