Class: Aspera::Fasp::Aoc
Instance Attribute Summary
Attributes inherited from Rest
Instance Method Summary collapse
-
#initialize(aoc_options) ⇒ Aoc
constructor
A new instance of Aoc.
Methods inherited from Node
Methods inherited from Rest
basic_creds, build_uri, #call, #cancel, #create, debug=, #delete, insecure, insecure=, #oauth_token, #read, #update, user_agent, user_agent=
Constructor Details
#initialize(aoc_options) ⇒ Aoc
Returns a new instance of Aoc.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/aspera/fasp/aoc.rb', line 8 def initialize() @app=[:app] || AoC::FILES_APP @api_aoc=AoC.new() Log.log.warn("Under Development") server_node_file = @api_aoc.resolve_node_file(server_home_node_file,server_folder) # force node as transfer agent node_api=Fasp::Node.new(@api_aoc.get_node_api(client_node_file[:node_info],AoC::SCOPE_NODE_USER)) super(node_api) # additional node to node TS info @add_ts={ 'remote_access_key' => server_node_file[:node_info]['access_key'], 'destination_root_id' => server_node_file[:file_id] } end |