Exception: Pocketknife::Error::InvalidTransferMechanism
- Inherits:
-
Pocketknife::Error
- Object
- StandardError
- Pocketknife::Error
- Pocketknife::Error::InvalidTransferMechanism
- 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
-
#mechanism ⇒ Symbol
Transfer mechanism that failed.
Instance Method Summary collapse
-
#initialize(mechanism) ⇒ InvalidTransferMechanism
constructor
A new instance of InvalidTransferMechanism.
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
#mechanism ⇒ Symbol
Returns Transfer mechanism that failed.
11 12 13 |
# File 'lib/pocketknife/errors.rb', line 11 def mechanism @mechanism end |