Class: Aspera::Plugins::Server::Commands::LocalExecutor

Inherits:
Object
  • Object
show all
Defined in:
lib/aspera/plugins/server/commands.rb

Instance Method Summary collapse

Instance Method Details

#execute(ascmd_path, input:) ⇒ Object



45
46
47
# File 'lib/aspera/plugins/server/commands.rb', line 45

def execute(ascmd_path, input:)
  Environment.secure_execute(ascmd_path, mode: :capture, stdin_data: input, binmode: true, exception: false).first
end