lib/cloud_providers/connections.rb
# hostname or ip to use when running remote commands
hostname or ip to use when running remote commands
hostname or ip to use when running remote commands
def scp(opts={})
      source = opts[:source]
      destination_path = opts[:destination] || opts[:source]
      raise StandardError.new("You must pass a local_file to scp") unless source
      scp_opts = opts[:scp_opts] || ""
      cmd_string = "scp #{ssh_options(scp_opts)} #{source} #{user}@#{host}:#{destination_path}"
      out = system_run(cmd_string)
      out
    end
def scp ( opts = { } ) source = opts [ :source ] destination_path = opts [ :destination ] || opts [ :source ] raise StandardError . new ( "You must pass a local_file to scp" ) unless source scp_opts = opts [ :scp_opts ] || "" cmd_string = "scp #{ssh_options(scp_opts)} #{source} #{user}@#{host}:#{destination_path}" out = system_run ( cmd_string ) out end
hostname or ip to use when running remote commands
hostname or ip to use when running remote commands
opts