Exception: MotherBrain::EnvironmentExists
- Defined in:
- lib/mb/errors.rb
Constant Summary
Constants inherited from MBError
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ EnvironmentExists
constructor
A new instance of EnvironmentExists.
- #message ⇒ Object
Methods inherited from MBError
#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s
Constructor Details
#initialize(name) ⇒ EnvironmentExists
Returns a new instance of EnvironmentExists.
674 675 676 |
# File 'lib/mb/errors.rb', line 674 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
672 673 674 |
# File 'lib/mb/errors.rb', line 672 def name @name end |
Instance Method Details
#message ⇒ Object
678 679 680 |
# File 'lib/mb/errors.rb', line 678 def "An environment named '#{name}' already exists in the Chef Server." end |