Exception: Chef::Exceptions::MissingRole
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Chef::Exceptions::MissingRole
- Defined in:
- lib/chef/exceptions.rb
Constant Summary collapse
- NULL =
Object.new
Instance Attribute Summary collapse
-
#expansion ⇒ Object
readonly
Returns the value of attribute expansion.
Instance Method Summary collapse
-
#initialize(message_or_expansion = NULL) ⇒ MissingRole
constructor
A new instance of MissingRole.
Constructor Details
#initialize(message_or_expansion = NULL) ⇒ MissingRole
Returns a new instance of MissingRole.
253 254 255 256 257 258 259 260 261 262 263 264 265 |
# File 'lib/chef/exceptions.rb', line 253 def initialize( = NULL) @expansion = nil case when NULL super() when String super when RunList::RunListExpansion @expansion = missing_roles = @expansion.errors.join(", ") super("The expanded run list includes nonexistent roles: #{missing_roles}") end end |
Instance Attribute Details
#expansion ⇒ Object (readonly)
Returns the value of attribute expansion.
251 252 253 |
# File 'lib/chef/exceptions.rb', line 251 def expansion @expansion end |