lib/fog/xenserver/compute.rb in fog-1.22.0 vs lib/fog/xenserver/compute.rb in fog-1.22.1
- old
+ new
@@ -1,11 +1,10 @@
require 'fog/xenserver/core'
module Fog
module Compute
class XenServer < Fog::Service
-
require 'fog/xenserver/utilities'
require 'fog/xenserver/parser'
requires :xenserver_username
requires :xenserver_password
@@ -112,11 +111,10 @@
request :destroy_vlan
request :snapshot_server
request :snapshot_revert
class Real
-
def initialize(options={})
@host = options[:xenserver_url]
@username = options[:xenserver_username]
@password = options[:xenserver_password]
@defaults = options[:xenserver_defaults] || {}
@@ -141,15 +139,13 @@
end
def default_network
networks.find { |n| n.name == (@defaults[:network] || "Pool-wide network associated with eth0") }
end
-
end
class Mock
-
def self.data
@data ||= Hash.new do |hash, key|
hash[key] = {}
end
end
@@ -165,12 +161,9 @@
@username = options[:xenserver_username]
@password = options[:xenserver_password]
@connection = Fog::XML::Connection.new(@host)
@connection.authenticate(@username, @password)
end
-
end
end
end
end
-
-