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

Require json or xml in provider cores

Since `fog-json` was extracted from `fog` it means if you rely on:

    require "fog/provider/compute"

`Fog::JSON` was not defined although it was supposed to be a supported
use case.

This adds the requires for JSON or XML based APIs based on a quick scan
of each provider to declare the required part.

AWS seems to be relying on both. Which is nice.

Providers relying on native code dependencies
This commit is contained in:
Paul Thornthwaite 2014-02-19 14:29:09 +00:00
parent 48a92f496f
commit 15ef5365e5
32 changed files with 34 additions and 0 deletions

View file

@ -1,4 +1,6 @@
require 'fog/core'
require 'fog/xml'
require 'fog/json'
require 'fog/aws/credential_fetcher'
require 'fog/aws/region_methods'
require 'fog/aws/signaturev4'

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/xml'
module Fog
module BareMetalCloud

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Bluebox

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Clodo

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module CloudSigma

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
require 'uri'
module Fog

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module DigitalOcean

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module DNSimple

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module DNSMadeEasy

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Dreamhost

View file

@ -1,6 +1,7 @@
require 'nokogiri'
require 'fog/core'
require 'fog/xml'
require 'fog/core/parser'
module Fog

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Glesys

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module GoGrid

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/xml'
module Fog
module Google

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
require 'fog/hp/simple_http_instrumentor'
module Fog

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module IBM

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/xml'
require 'fog/internet_archive/signaturev4'
module Fog

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Joyent

View file

@ -1,4 +1,6 @@
require 'fog/core'
require 'fog/xml'
require 'fog/json'
module Fog
module Libvirt

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Linode

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Ninefold

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module OpenStack

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/xml'
module Fog
module Ovirt

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
require 'fog/rackspace/mock_data'
require 'fog/rackspace/service'
require 'fog/rackspace/errors'

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Rage4

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module RiakCS

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module Serverlove

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/json'
module Fog
module StormOnDemand

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/xml'
module Fog
module VcloudDirector

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/xml'
require 'digest/md5'
module Fog

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/xml'
module Fog
module XenServer

View file

@ -1,4 +1,5 @@
require 'fog/core'
require 'fog/xml'
module Fog
module Zerigo