Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Fog::Compute::Server

Public Instance Methods

scp(local_path, remote_path, upload_options = {}) click to toggle source
# File lib/fog/compute/models/server.rb, line 7
def scp(local_path, remote_path, upload_options = {})
  require 'net/scp'
  requires :public_ip_address, :username

  scp_options = {}
  scp_options[:key_data] = [private_key] if private_key
  Fog::SCP.new(public_ip_address, username, scp_options).upload(local_path, remote_path, upload_options)
end
ssh(commands, options={}) click to toggle source
# File lib/fog/compute/models/server.rb, line 16
def ssh(commands, options={})
  require 'net/ssh'
  requires :public_ip_address, :username

  options[:key_data] = [private_key] if private_key
  Fog::SSH.new(public_ip_address, username, options).run(commands)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.