1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #905 from jherdman/remove-more-warnings

Remove more warnings
This commit is contained in:
Wesley Beary 2012-05-28 09:42:06 -07:00
commit 8992b32d40
91 changed files with 135 additions and 169 deletions

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module AWS

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS
@ -145,7 +145,6 @@ module Fog
def self.data
@data ||= Hash.new do |hash, region|
owner_id = Fog::AWS::Mock.owner_id
hash[region] = Hash.new do |region_hash, key|
region_hash[key] = {
:adjustment_types => [

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS
@ -109,15 +109,15 @@ module Fog
)
begin
response = @connection.request({
:body => body,
:expects => 200,
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },
:idempotent => idempotent,
:host => @host,
:method => 'POST',
:parser => parser
})
@connection.request({
:body => body,
:expects => 200,
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },
:idempotent => idempotent,
:host => @host,
:method => 'POST',
:parser => parser
})
rescue Excon::Errors::HTTPStatusError => error
if match = error.response.body.match(/<Code>(.*)<\/Code>[ \t\n]*<Message>(.*)<\/Message>/)
raise case match[1].split('.').last

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
require 'fog/cdn'
module Fog
@ -112,7 +112,7 @@ module Fog
def signature(params)
string_to_sign = params[:headers]['Date']
signed_string = @hmac.sign(string_to_sign)
signature = Base64.encode64(signed_string).chomp!
Base64.encode64(signed_string).chomp!
end
end
end

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS
@ -98,7 +98,7 @@ module Fog
}
)
response = @connection.request({
@connection.request({
:body => body,
:expects => 200,
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
require 'fog/dns'
module Fog
@ -111,7 +111,7 @@ module Fog
def signature(params)
string_to_sign = params[:headers]['Date']
signed_string = @hmac.sign(string_to_sign)
signature = Base64.encode64(signed_string).chomp!
Base64.encode64(signed_string).chomp!
end
end
end

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS
@ -106,12 +106,12 @@ module Fog
def request(params)
idempotent = params.delete(:idempotent)
now = Fog::Time.now
headers = {
'Content-Type' => 'application/x-amz-json-1.0',
'x-amz-date' => Fog::Time.now.to_date_header,
'x-amz-security-token' => @aws_session_token
}.merge(params[:headers])
headers['x-amzn-authorization'] = signed_authorization_header(params, headers)
response = @connection.request({

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS
@ -152,7 +152,7 @@ module Fog
}
)
response = @connection.request({
@connection.request({
:body => body,
:expects => 200,
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS
@ -109,20 +109,8 @@ module Fog
:method => 'POST',
:parser => parser
})
rescue Excon::Errors::HTTPStatusError => error
if match = error.message.match(/<Code>(.*)<\/Code>[\s\\\w]+<Message>(.*)<\/Message>/m)
# case match[1].split('.').last
# when 'DBInstanceNotFound', 'DBParameterGroupNotFound', 'DBSnapshotNotFound', 'DBSecurityGroupNotFound'
# raise Fog::AWS::RDS::NotFound.slurp(error, match[2])
# when 'DBParameterGroupAlreadyExists'
# raise Fog::AWS::RDS::IdentifierTaken.slurp(error, match[2])
# else
# raise
# end
raise
else
raise
end
rescue Excon::Errors::HTTPStatusError
raise
end
response

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS
@ -61,7 +61,6 @@ module Fog
def self.data
@data ||= Hash.new do |hash, region|
owner_id = Fog::AWS::Mock.owner_id
hash[region] = Hash.new do |region_hash, key|
region_hash[key] = {
:servers => {},

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS
@ -21,7 +21,6 @@ module Fog
class Mock
def self.data
@data ||= Hash.new do |hash, region|
owner_id = Fog::AWS::Mock.owner_id
hash[region] = Hash.new do |region_hash, key|
region_hash[key] = {
:owner_id => Fog::AWS::Mock.owner_id,

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
require 'fog/storage'
module Fog
@ -352,7 +352,7 @@ DATA
string_to_sign << canonical_resource
signed_string = @hmac.sign(string_to_sign)
signature = Base64.encode64(signed_string).chomp!
Base64.encode64(signed_string).chomp!
end
private

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'aws'))
require 'fog/aws'
module Fog
module AWS

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module BareMetalCloud

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'bare_metal_cloud'))
require 'fog/bare_metal_cloud'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Bluebox

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'bluebox'))
require 'fog/bluebox'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'bluebox'))
require 'fog/bluebox'
require 'fog/dns'
module Fog
@ -101,4 +101,4 @@ module Fog
end
end
end
end
end

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Brightbox

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'brightbox'))
require 'fog/brightbox'
require 'fog/compute'
module Fog
@ -165,7 +165,7 @@ module Fog
begin
get_oauth_token if @oauth_token.nil?
response = authenticated_request(params)
rescue Excon::Errors::Unauthorized => e
rescue Excon::Errors::Unauthorized
get_oauth_token
response = authenticated_request(params)
end

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'cloudstack'))
require 'fog/cloudstack'
require 'fog/compute'
require 'digest/md5'
@ -123,32 +123,6 @@ module Fog
request :update_resource_count
request :update_virtual_machine
class Mock
def self.data
@data ||= Hash.new do |hash, key|
hash[key] = {}
end
end
def self.reset
@data = nil
end
def initialize(options={})
@cloudstack_api_key = options[:cloudstack_api_key]
end
def data
self.class.data[@cloudstack_api_key]
end
def reset_data
self.class.data.delete(@cloudstack_api_key)
end
end
class Real
def initialize(options={})
@ -240,7 +214,7 @@ module Fog
def issue_request(params={},headers={},method='GET',expects=200)
begin
response = @connection.request({
@connection.request({
:query => params,
:headers => headers,
:method => method,
@ -267,6 +241,10 @@ module Fog
end # Real
class Mock
def initialize(options={})
@cloudstack_api_key = options[:cloudstack_api_key]
end
def self.data
@data ||= begin
rc_options = Fog.credentials[:cloudstack] || {}
@ -437,12 +415,16 @@ module Fog
end
def self.reset
@data= nil
@data = nil
end
def data
self.class.data
end
def reset_data
self.class.data.delete(@cloudstack_api_key)
end
end
end # Cloudstack
end # Compute

View file

@ -24,7 +24,7 @@ module Fog
lazy_load
end
data = super
result = self.clone.clear.concat(data)
self.clone.clear.concat(data)
end
EOS
end

View file

@ -95,8 +95,8 @@ An alternate file may be used by placing its path in the FOG_RC environment vari
#######################################################
YML
raise(Fog::Errors::LoadError.new(missing_credentials_message))
end
raise(Fog::Errors::LoadError.new(missing_credentials_message))
end
end
end

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module DNSimple

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'dnsimple'))
require 'fog/dnsimple'
require 'fog/dns'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module DNSMadeEasy

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'dnsmadeeasy'))
require 'fog/dnsmadeeasy'
require 'fog/dns'
module Fog
@ -127,7 +127,7 @@ module Fog
def signature(params)
string_to_sign = params[:headers]['x-dnsme-requestDate']
signed_string = OpenSSL::HMAC.hexdigest('sha1', @dnsmadeeasy_secret_key, string_to_sign)
OpenSSL::HMAC.hexdigest('sha1', @dnsmadeeasy_secret_key, string_to_sign)
end
end
end

View file

@ -1,6 +1,6 @@
require 'nokogiri'
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
require 'fog/core/parser'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'dynect'))
require 'fog/dynect'
require 'fog/dns'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Ecloud

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ecloud'))
require 'fog/ecloud'
require 'ipaddr'
class IPAddr
@ -1181,7 +1181,7 @@ module Fog
end
begin
do_request(params)
rescue Excon::Errors::Unauthorized => e
rescue Excon::Errors::Unauthorized
do_login
do_request(params)
end

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module GoGrid

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'go_grid'))
require 'fog/go_grid'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Google

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'google'))
require 'fog/google'
require 'fog/storage'
module Fog
@ -251,7 +251,7 @@ DATA
string_to_sign << "#{canonical_resource}"
signed_string = @hmac.sign(string_to_sign)
signature = Base64.encode64(signed_string).chomp!
Base64.encode64(signed_string).chomp!
end

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module HP

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'hp'))
require 'fog/hp'
require 'fog/cdn'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'hp'))
require 'fog/hp'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'hp'))
require 'fog/hp'
require 'fog/storage'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module IBM

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ibm'))
require 'fog/ibm'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ibm'))
require 'fog/ibm'
require 'fog/storage'
module Fog

View file

@ -1,5 +1,5 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'joyent'))
require File.expand_path(File.join(File.dirname(__FILE__), 'errors'))
require 'fog/joyent'
require 'fog/joyent/errors'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Libvirt

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'libvirt'))
require 'fog/libvirt'
require 'fog/compute'
require 'fog/libvirt/models/compute/util/util'
require 'fog/libvirt/models/compute/util/uri'
@ -58,7 +58,10 @@ module Fog
end
private
attr_reader :client
def client
return @client if defined?(@client)
end
#read mocks xml
def read_xml(file_name)

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Linode

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'linode'))
require 'fog/linode'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'linode'))
require 'fog/linode'
require 'fog/dns'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Local

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'storage'))
require 'fog/local/storage'
require 'fog/storage'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Ninefold

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ninefold'))
require 'fog/ninefold'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ninefold'))
require 'fog/ninefold'
require 'fog/storage'
module Fog
@ -116,7 +116,7 @@ module Fog
end
}
header_arr = customheaders.sort()
first = true
header_arr.each { |key,value|
# Values are lowercase and whitespace-normalized
signstring += key + ":" + value.strip.chomp.squeeze( " " ) + "\n"

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module OpenStack

View file

@ -1,4 +1,3 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'openstack'))
require 'fog/compute'
require 'fog/openstack'

View file

@ -1,4 +1,3 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'openstack'))
require 'fog/openstack'
module Fog

View file

@ -1,4 +1,3 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'openstack'))
require 'fog/openstack'
module Fog

View file

@ -1,4 +1,3 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'openstack'))
require 'fog/openstack'
module Fog

View file

@ -1,4 +1,3 @@
module Fog
module Compute
class Ovirt < Fog::Service
@ -74,13 +73,14 @@ module Fog
def initialize(options={})
require 'rbovirt'
username = options[:ovirt_username]
password = options[:ovirt_password]
url = options[:ovirt_url]
end
private
attr_reader :client
def client
return @client if defined?(@client)
end
#read mocks xml
def read_xml(file_name)
file_path = File.join(File.dirname(__FILE__),"requests","compute","mock_files",file_name)
@ -106,7 +106,10 @@ module Fog
end
private
attr_reader :client
def client
@client
end
end
end
end

View file

@ -30,4 +30,3 @@ require 'fog/vsphere'
require 'fog/voxel'
require 'fog/xenserver'
require 'fog/zerigo'
require 'fog/zerigo'

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Rackspace

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'rackspace'))
require 'fog/rackspace'
require 'fog/cdn'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'rackspace'))
require 'fog/rackspace'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'rackspace'))
require 'fog/rackspace'
require 'fog/dns'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'rackspace'))
require 'fog/rackspace'
module Fog
module Rackspace

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'rackspace'))
require 'fog/rackspace'
require 'fog/storage'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Slicehost

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'slicehost'))
require 'fog/slicehost'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'slicehost'))
require 'fog/slicehost'
require 'fog/dns'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module StormOnDemand

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'storm_on_demand'))
require 'fog/storm_on_demand'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
require 'fog/terremark/shared'
require 'fog/terremark/parser'

View file

@ -61,7 +61,7 @@ module Fog
end
begin
do_request(params)
rescue Excon::Errors::Unauthorized => e
rescue Excon::Errors::Unauthorized
@cookie = auth_token
do_request(params)
end

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Vcloud

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'vcloud'))
require 'fog/vcloud'
require 'fog/compute'
module Fog
@ -258,7 +258,7 @@ module Fog
end
begin
do_request(params)
rescue Excon::Errors::Unauthorized => e
rescue Excon::Errors::Unauthorized
do_login
do_request(params)
end

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module VirtualBox

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'virtual_box'))
require 'fog/virtual_box'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Vmfusion

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'vmfusion'))
require 'fog/vmfusion'
require 'fog/compute'
module Fog

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
require 'digest/md5'
module Fog

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'voxel'))
require 'fog/voxel'
require 'fog/compute'
module Fog

View file

@ -61,7 +61,7 @@ module Fog
def convert_vm_mob_ref_to_attr_hash(vm_mob_ref)
return nil unless vm_mob_ref
props = vm_mob_ref.collect! *ATTR_TO_PROP.values.uniq
props = vm_mob_ref.collect!(*ATTR_TO_PROP.values.uniq)
# NOTE: Object.tap is in 1.8.7 and later.
# Here we create the hash object that this method returns, but first we need
# to add a few more attributes that require additional calls to the vSphere

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'xenserver'))
require 'fog/xenserver'
require 'fog/compute'
module Fog
@ -62,8 +62,6 @@ module Fog
class Real
attr_accessor :default_template
def initialize(options={})
@host = options[:xenserver_url]
@username = options[:xenserver_username]
@ -89,7 +87,7 @@ module Fog
end
def default_network
net = networks.find { |n| n.name == (@defaults[:network] || "Pool-wide network associated with eth0") }
networks.find { |n| n.name == (@defaults[:network] || "Pool-wide network associated with eth0") }
end
end

View file

@ -1,4 +1,4 @@
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
require 'fog/core'
module Fog
module Zerigo

View file

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'zerigo'))
require 'fog/zerigo'
require 'fog/dns'
module Fog