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.



324
325
326
327
# File 'lib/berkshelf/errors.rb', line 324

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

Instance Method Details

#to_sObject Also known as: message



329
330
331
# File 'lib/berkshelf/errors.rb', line 329

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