Module: Aspera::Plugins::Xfer::Helper

Defined in:
lib/aspera/plugins/xfer/helper.rb

Overview

Included by the commands of the bundles that transfer files (manifest: depends: - xfer): the transfer agent is the service transfer of this bundle. Single-file plugins use Cli::Plugins::Base#transfer.

Instance Method Summary collapse

Instance Method Details

#transfer ⇒ TransferAgent

Returns Service transfer of the context of the plugin: created once, on first use.

Returns:

  • (TransferAgent) —

    Service transfer of the context of the plugin: created once, on first use

Raises:

  • (Cli::Error) —

    If the bundle xfer is unavailable



15
# File 'lib/aspera/plugins/xfer/helper.rb', line 15

def transfer = context.service(:transfer)