Commit Graph

26 Commits

Author SHA1 Message Date
Paul Thornthwaite 7ee3535d99 [core] Replace Fog::Connection with stable version
Fog::Connection mixed in XML parsing via the `parser` argument which
wasn't much use for the majority of APIs using JSON.

This adds the deprecation warning and attempts to update providers to
the correct version of Connection that they need.

Either the cleaner `Fog::Core::Connection` or if reliant on the XML
parsing still `Fog::XML::SAXParserConnection`

The SAX parser will be moving to `fog/xml` fairly soon.
2014-02-25 21:42:34 +00:00
Paul Thornthwaite a72433d2f8 Remove duplicate requires from services
Following work on reorganising the requires, there was an inconsistent
approach to where service wrappers are required. (Fog::Compute...)

Since they should be standardised and shared across providers (although
they really aren't yet) they have been moved to `fog-core` gem.

Each provider has their own `lib/fog/{provider}/core` files that is
required by each of their services. These files should all require
`fog/core` which already required most or these.

So this removes the extra cases to concentrate them in core.
2014-02-13 17:44:48 +00:00
Lance Ivy 1cdd969a34 create core for each provider. keep load hook for provider. 2014-02-01 21:13:17 -05:00
Garima Singh b7f8db97b1 [Vcloud] Adding case insensitivity for set-cookie header 2013-08-02 12:44:23 +01:00
Rodrigo Estebanez d809e146a9 VM@customization_script= 2013-06-03 19:17:47 +02:00
Rodrigo Estebanez 273d951f26 Tags#create implemented 2013-06-03 19:17:47 +02:00
Rodrigo Estebanez 4b0ee24ea5 Tag#destroy implemented 2013-06-03 19:17:47 +02:00
Rodrigo Estebanez 08fc2f1eac server.tags implemented 2013-06-03 19:17:47 +02:00
Chirag Jog 9e8bb10684 Delete \r also 2013-03-01 13:17:39 +05:30
Chirag Jog 5a33322361 Fix the base encoding issue with Ruby 1.8.7 Compliance 2013-02-28 21:40:33 +05:30
Chirag Jog c8796146b3 Merge branch 'master' of git://github.com/fog/fog into vcloud_base_encoder64_fix 2013-02-28 17:48:03 +05:30
Chirag Jog 15eb069195 Use strict base encoding otherwise breaks for very large org names. 2013-02-28 17:46:54 +05:30
Chirag Jog 6b7ae788cd Support to Configure the VM network 2013-02-08 11:57:24 +05:30
Paul Thornthwaite e959078e89 [vcloud|compute] Updates reference to service 2013-01-07 21:01:23 +00:00
Chirag Jog 15592c06de Add ability to configure a vApp with an Org-wide network and associated
firewall, NAT rules(limited support).
2012-08-05 21:00:31 +05:30
Chirag Jog 8554a08ea4 1.Ability to fetch/list Orgs, Vdcs, Vapps, Servers.
2.Support to customize CPUs and Password
2012-08-05 21:00:11 +05:30
James Herdman 97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
James Herdman 4919347a90 Remove unused variable 2012-05-26 11:27:23 -04:00
Peter Meier 30e28d704f [vcloud|compute] add API version 1.5 compability
vCloud version API 1.5 requires us to adapt certain calls. This
patch does all the necessary things to scan a vCloud 1.5 completely
and read all the necessary attributes, as we could already before.
Furthermore, it add tests for the version 1.5 calls.

The API version can now be set as a version param to the vcloud
compute resource. By default it chooses version 1.5.

This has been tested against a vCloud 1.5 and 1.0.
2012-01-30 19:04:19 +01:00
Peter Meier 3e240474ac [vcloud|compute] improve models + additional tests
vCloud has also the concept of links in the responses. So we should
make use of them to navigate through the tree of resources in the
vCloud.
Furthermore, we can make various calls a bit easier by directly
returning the specific resource object than the plain xml response.

Adjust tests to work with the new changes, and also test the added
parts.
2012-01-30 18:57:13 +01:00
Peter Meier 750fb59f25 [vcloud|compute] improve models add tests
Improve the models to work with the current api version. add tests
that use fake-data, that was captured from a real vCloud.

Also removed a couple of dead code. Tests have been added for
everything that changed or have been added. All the existing but
untouched parts have not been tested.
2011-11-29 11:37:18 +01:00
Peter Meier f2c90dcc7f [vcloud|compute] introduce vapps 2011-11-29 11:37:17 +01:00
Peter Meier 8743df0bd4 [vcloud|compute] introduce organizations
A vcloud usually contains more than one organization which then
contains all the other computing parts (such as vdcs etc.). So far
we keep the old way, to query the first organization by default, but
also allow it to be set.
2011-11-29 11:37:17 +01:00
geemus ffd01e51dd [core] pass connection_options through service init
closes #411
2011-09-12 10:01:56 -05:00
geemus b2c8ff0388 [core] work toward separate requires
Should facilitate the following:

    require 'fog/aws'
    require 'fog/compute'
    require 'fog/aws/compute'

I think once you `require 'rubygems'` those should work.

further cleanup should reduce common requires (ie nokogiri)
2011-08-31 15:52:53 -05:00
geemus d6f9fb4c35 [compute|vcloud] move vcloud compute to its own shared area (namespacing should probably be corrected) 2011-08-24 20:12:00 -05:00
Renamed from lib/fog/compute/vcloud.rb (Browse further)