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

Fix a bunch of paths.

This commit is contained in:
phiggins 2011-01-10 14:12:48 +08:00 committed by Wesley Beary
parent bc25028c2f
commit 0cc5773bf2
77 changed files with 83 additions and 82 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::Address' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::Addresses' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::KeyPair' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::KeyPairs' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::SecurityGroup' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::SecurityGroups' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::Server' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::Snapshot' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::Snapshots' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::Volume' do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'spec_helper'
describe 'Fog::AWS::Compute::Volumes' do

View file

@ -1,8 +1,8 @@
require 'spec'
require 'open-uri'
require 'fog'
require 'fog/core/bin'
require 'fog/vcloud/bin'
require 'fog/bin'
require 'fog/bin/vcloud'
if ENV["FOG_MOCK"] == "true"
Fog.mock!

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/spec_helper'
require 'vcloud/spec_helper'
describe Vcloud do
it { should be_initialized }

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Vdc", :type => :mock_vcloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe Fog::Vcloud, :type => :mock_vcloud_request do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'vcloud/spec_helper'
if Fog.mocking?
describe Fog::Vcloud, :type => :mock_vcloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'vcloud/spec_helper'
#
# WARNING: INCOMPLETE

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'vcloud/spec_helper'
shared_examples_for "real or mock get_versions requests" do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require 'vcloud/spec_helper'
shared_examples_for "real or mock login requests" do
subject { @vcloud }

View file

@ -19,13 +19,12 @@ end
#Initialize this to a known seed
srand 1234
current_directory = File.dirname(__FILE__)
require "#{current_directory}/../../lib/fog"
require "#{current_directory}/../../lib/fog/core/bin"
require 'fog'
require 'fog/bin'
Fog.mock! if ENV['FOG_MOCK']
require "#{current_directory}/../../lib/fog/vcloud/bin"
require 'fog/bin/vcloud'
def arrayify(item)
item.is_a?(Array) ? item : [ item ]

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::BackupInternetService", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::InternetServices", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::InternetService", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::InternetServices", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::Ip", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::Ips", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::Network", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::Networks", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::Node", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::InternetServices", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::PublicIp", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::PublicIps", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::Vdc", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::Vdc", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'..','..','..','spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud::Terremark::Ecloud::Vdcs", :type => :mock_tmrk_ecloud_model do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
#FIXME: with rspec2

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
shared_examples_for "a successful configure vapp" do
specify { after_vapp_data.should == new_vapp_data }

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
#FIXME: Make this more sane with rspec2
if Fog.mocking?

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
#FIXME: with rspec2

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
shared_examples_for "a failed vapp deletion" do
it "should not change the mock data" do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
shared_examples_for "a basic internet service" do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe "Fog::Vcloud, initialized w/ the TMRK Ecloud module", :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe Fog::Vcloud, :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe Fog::Vcloud, :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')
require 'vcloud/spec_helper'
if Fog.mocking?
describe Fog::Vcloud, :type => :mock_tmrk_ecloud_request do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/spec_helper'
require 'vcloud/spec_helper'
if Fog.mocking?
describe Fog::Vcloud, :type => :mock_vcloud_request do

View file

@ -1,5 +1,7 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'fog')
require 'fog/core/bin'
$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[ .. lib fog]))
require 'fog'
require 'fog/bin'
# Use so you can run in mock mode from the command line
#