Exception: Chef::Exceptions::MissingRole
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Chef::Exceptions::MissingRole
- Defined in:
- lib/chef/exceptions.rb
Instance Attribute Summary collapse
-
#expansion ⇒ Object
readonly
Returns the value of attribute expansion.
Instance Method Summary collapse
-
#initialize(message_or_expansion = NOT_PASSED) ⇒ MissingRole
constructor
A new instance of MissingRole.
Constructor Details
#initialize(message_or_expansion = NOT_PASSED) ⇒ MissingRole
Returns a new instance of MissingRole.
270 271 272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/chef/exceptions.rb', line 270 def initialize( = NOT_PASSED) @expansion = nil case when NOT_PASSED 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.
268 269 270 |
# File 'lib/chef/exceptions.rb', line 268 def expansion @expansion end |