Exception: DreamOps::RoleNotFoundError
- Inherits:
-
DreamOpsError
- Object
- StandardError
- DreamOpsError
- DreamOps::RoleNotFoundError
- Defined in:
- lib/dream-ops/errors.rb
Instance Method Summary collapse
-
#initialize(target, role) ⇒ RoleNotFoundError
constructor
A new instance of RoleNotFoundError.
- #to_s ⇒ Object
Methods inherited from DreamOpsError
Constructor Details
#initialize(target, role) ⇒ RoleNotFoundError
138 139 140 141 |
# File 'lib/dream-ops/errors.rb', line 138 def initialize(target, role) @target = target @role = role end |
Instance Method Details
#to_s ⇒ Object
143 144 145 146 147 148 149 |
# File 'lib/dream-ops/errors.rb', line 143 def to_s [ "Could not find /var/chef/roles/#{@role}.json \"#{@target}\". To initialize with an empty runlist, run:", "", "dream init solo -t #{@target} -i #{DreamOps.ssh_key}", ].join("\n") end |