Exception: Pocketknife::Error::InvalidTransferMechanism

Inherits:
Pocketknife::Error show all
Defined in:
lib/pocketknife/errors.rb

Overview

InvalidTransferMechanism

Exception raised when given an invalid transfer mechanism, e.g. not :tar or :rsync.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mechanism) ⇒ InvalidTransferMechanism

Returns a new instance of InvalidTransferMechanism.



13
14
15
# File 'lib/pocketknife/errors.rb', line 13

def initialize(mechanism)
  super("Invalid transfer mechanism: #{mechanism}")
end

Instance Attribute Details

#mechanismSymbol

Returns Transfer mechanism that failed.

Returns:

  • (Symbol)

    Transfer mechanism that failed.



11
12
13
# File 'lib/pocketknife/errors.rb', line 11

def mechanism
  @mechanism
end