Exception: DreamOps::ChefSoloFailedError

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

Instance Method Summary collapse

Methods inherited from DreamOpsError

set_status_code

Constructor Details

#initialize(target, log_path) ⇒ ChefSoloFailedError

Returns a new instance of ChefSoloFailedError.



88
89
90
91
# File 'lib/dream-ops/errors.rb', line 88

def initialize(target, wget_url)
  @target   = target
  @wget_url = wget_url
end

Instance Method Details

#to_sObject



93
94
95
96
97
98
99
# File 'lib/dream-ops/errors.rb', line 93

def to_s
  [
    "Target \"#{@target}\" failed installing chef-solo via CINC from:",
    "",
    @wget_url,
  ].join("\n")
end