Exception: Berkshelf::InvalidSiteShortnameError
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::InvalidSiteShortnameError
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(shortname) ⇒ InvalidSiteShortnameError
constructor
A new instance of InvalidSiteShortnameError.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(shortname) ⇒ InvalidSiteShortnameError
Returns a new instance of InvalidSiteShortnameError.
248 249 250 |
# File 'lib/berkshelf/errors.rb', line 248 def initialize(shortname) @shortname = shortname end |
Instance Method Details
#to_s ⇒ Object
252 253 254 255 256 257 258 |
# File 'lib/berkshelf/errors.rb', line 252 def to_s [ "Unknown site shortname '#{@shortname}' - supported shortnames are:", "", " * " + SiteLocation::SHORTNAMES.keys.join("\n * "), ].join("\n") end |