class Toolshed::Commands::SCP::Upload
Responsible for handing uploading of files
Public Class Methods
cli_options()
click to toggle source
# File lib/toolshed/commands/scp/upload.rb, line 8 def self.cli_options # rubocop:disable MethodLength { banner: 'Usage: scp upload [options]', options: { remote_host: { short_on: '-r' }, remote_path: { short_on: '-d' }, local_path: { short_on: '-s' }, username: { short_on: '-u' }, password: { short_on: '-p' }, verbose_output: { short_on: '-v' } } } end
Public Instance Methods
execute(_args, options = nil)
click to toggle source
# File lib/toolshed/commands/scp/upload.rb, line 34 def execute(_args, options = nil) options ||= nil Toolshed.logger.info '' Toolshed::ServerAdministration::SCP.new(scp_options(options)).upload Toolshed.die end