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.
229 230 231 |
# File 'lib/berkshelf/errors.rb', line 229 def initialize(shortname) @shortname = shortname end |
Instance Method Details
#to_s ⇒ Object
233 234 235 236 237 238 239 |
# File 'lib/berkshelf/errors.rb', line 233 def to_s [ "Unknown site shortname '#{@shortname}' - supported shortnames are:", "", " * " + SiteLocation::SHORTNAMES.keys.join("\n * "), ].join("\n") end |