Class: Fog::Compute::Server
- Defined in:
- lib/fog/compute/models/server.rb
Direct Known Subclasses
AWS::Server, Bluebox::Server, Brightbox::Server, Glesys::Server, GoGrid::Server, Linode::Server, Ninefold::Server, OpenStack::Server, Rackspace::Server, Fog::Compute::Slicehost::Server, Fog::Compute::StormOnDemand::Server, Voxel::Server, Vsphere::Server
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#initialize, #inspect, #reload, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
#scp(local_path, remote_path, upload_options = {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/fog/compute/models/server.rb', line 7 def scp(local_path, remote_path, = {}) require 'net/scp' requires :public_ip_address, :username = {} [:key_data] = [private_key] if private_key Fog::SCP.new(public_ip_address, username, ).upload(local_path, remote_path, ) end |