Exception: Berkshelf::InvalidSiteShortnameError

Inherits:
BerkshelfError
  • Object
show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

status_code

Constructor Details

#initialize(shortname) ⇒ InvalidSiteShortnameError

Returns a new instance of InvalidSiteShortnameError.



158
159
160
# File 'lib/berkshelf/errors.rb', line 158

def initialize(shortname)
  @shortname = shortname
end

Instance Method Details

#to_sObject



162
163
164
# File 'lib/berkshelf/errors.rb', line 162

def to_s
  "Unknown site shortname: #{@shortname.inspect}. Supported shortnames are: #{SiteLocation::SHORTNAMES.keys.map(&:inspect).join(',')}"
end