lib/fog/compute/models/slicehost/server.rb in fog-0.10.0 vs lib/fog/compute/models/slicehost/server.rb in fog-0.11.0

- old
+ new

@@ -1,12 +1,12 @@ -require 'fog/core/model' +require 'fog/compute/models/server' module Fog module Compute class Slicehost - class Server < Fog::Model + class Server < Fog::Compute::Server identity :id attribute :addresses attribute :backup_id, :aliases => 'backup-id' @@ -98,25 +98,9 @@ %{echo "#{MultiJson.encode(attributes)}" >> ~/attributes.json} ]) rescue Errno::ECONNREFUSED sleep(1) retry - end - - def ssh(commands) - requires :addresses, :identity, :username - - options = {} - options[:key_data] = [private_key] if private_key - Fog::SSH.new(addresses.first, username, options).run(commands) - end - - def scp(local_path, remote_path, upload_options = {}) - requires :addresses, :username - - scp_options = {} - scp_options[:key_data] = [private_key] if private_key - Fog::SCP.new(addresses.first, username, scp_options).upload(local_path, remote_path, upload_options) end def username @username ||= 'root' end