Class: Aspera::Transfer::Spec
- Inherits:
-
Object
- Object
- Aspera::Transfer::Spec
- Defined in:
- lib/aspera/transfer/spec.rb
Overview
parameters for Transfer Spec
Constant Summary collapse
- ACCESS_KEY_TRANSFER_USER =
default transfer username for access key based transfers
'xfer'
- SSH_PORT =
default ports for SSH and UDP
33_001
- UDP_PORT =
33_001
- AK_TSPEC_BASE =
base transfer spec for access keys
{ 'remote_user' => ACCESS_KEY_TRANSFER_USER, 'ssh_port' => SSH_PORT, 'fasp_port' => UDP_PORT }.freeze
- WSS_FIELDS =
fields for WSS
%w[wss_enabled wss_port].freeze
- TRANSPORT_FIELDS =
all fields for transport
%w[remote_host remote_user ssh_port fasp_port].concat(WSS_FIELDS).freeze
- TAG_RESERVED =
reserved tag for Aspera
'aspera'
- DESCRIPTION =
CommandLineBuilder.normalize_description(YAML.load_file("#{__FILE__[0..-3]}yaml"))
Class Method Summary collapse
-
.direction_to_transfer_type(direction) ⇒ Object
translate send/receive to upload/download.
-
.transfer_type_to_direction(transfer_type) ⇒ Object
translate upload/download to send/receive.
Class Method Details
.direction_to_transfer_type(direction) ⇒ Object
translate send/receive to upload/download
35 36 37 |
# File 'lib/aspera/transfer/spec.rb', line 35 def direction_to_transfer_type(direction) XFER_DIR_TO_TYPE.fetch(direction) end |
.transfer_type_to_direction(transfer_type) ⇒ Object
translate upload/download to send/receive
30 31 32 |
# File 'lib/aspera/transfer/spec.rb', line 30 def transfer_type_to_direction(transfer_type) XFER_TYPE_TO_DIR.fetch(transfer_type) end |