Exception: Berkshelf::UnknownCompressionType

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

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(target, destination) ⇒ UnknownCompressionType

Returns a new instance of UnknownCompressionType.



326
327
328
329
# File 'lib/berkshelf/errors.rb', line 326

def initialize(target, destination)
  @target = target
  @destination = destination
end

Instance Method Details

#to_sObject Also known as: message



331
332
333
# File 'lib/berkshelf/errors.rb', line 331

def to_s
  "The file at '#{@target}' is not a known compression type, and cannot be decompressed into '#{@destination}'"
end