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

27 commits

Author SHA1 Message Date
Paul Thornthwaite
5007aac401 Revert "[core] Replace Fog::Connection with stable version"
This reverts commit 7ee3535d99.
2014-02-26 09:52:02 +00:00
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
Kevin Chan
270fc4c0f4 Merge branch 'joyent-analytics' of git://github.com/6fusion/fog into 6fusion-joyent-analytics
Conflicts:
	lib/fog/joyent.rb
2014-02-11 16:50:26 +08:00
Lance Ivy
1cdd969a34 create core for each provider. keep load hook for provider. 2014-02-01 21:13:17 -05:00
Kevin Olbrich
26cb64e9ce add datacenter model 2014-01-21 16:24:24 +00:00
Kevin Olbrich
5389f7a21b update compute with some attributes from api 7.0 2014-01-21 16:24:23 +00:00
Kevin Olbrich
df73f445d7 create instrumentations, handle errors better, get an individual instrumentation 2014-01-21 16:24:22 +00:00
Kevin Olbrich
2150f32b74 add option :joyent_keydata. This allows the key to be read from a file outside of Fog and be passed into the initializer. This way the key data can be stored in something other than a file and still be used. 2014-01-21 16:24:21 +00:00
Carlos Sanchez
1e18b71963 Only HTTPStatusError has request and response
Fixes NoMethodError:undefined method 'request' for #<Excon::Errors::SocketError:0x62540a41>
2013-08-29 12:43:14 -07:00
Kevin Chan
815b5dbbd8 Merge remote-tracking branch 'fog/master' into ssh-agent
Conflicts:
	lib/fog/joyent/compute.rb
2013-06-02 17:34:59 +08:00
Blake Irvin and Eric Saxby
5fc41c8dc2 Add joyent API version and network support GH-1853
Adding support for listing networks in the Joyent Cloud.
:joyent_version was defined in a way that it would always
fall back to the default '~6.5'. Creating servers with
a particular network requires setting :joyent_version to '~7.0'
or greater.
2013-06-02 17:28:05 +08:00
Kevin Chan
f0dcb04b91 Fixes for tags for pre7 api, more ssh-agent improvements Refs: kevinykchan/knife-joyent#37 2013-05-20 16:34:10 -07:00
Kevin Chan
ffa3e89ebb Support for request signing via ssh-agent 2013-05-19 06:28:16 -07:00
Pablo Baños López
386e63855d Avoids Fog::Compute::Joyent::Real#decode_time_attrs raising an exception when an empty string is returned as created or updated property 2013-05-14 11:35:02 +02:00
Kevin Chan
55c720ba9f Fixes #39 joyent server resize command requires expected response code 2013-05-06 10:05:38 -07:00
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
Kevin Chan
9229ec04f8 [joyent|compute] Support for DSA keys for auth
Certain ruby/openssl versions have issues with DSA key signing, if that is the
case, suggests user to use an RSA key instead.

Fixes #886
2012-05-02 15:22:07 +08:00
Kevin Menard
dcefc2d7de Fixed #875: Loosen multi_json version. 2012-04-25 10:31:28 -04:00
Steve Smith
d89dd56fe7 Use MultiJSON #dump and #load rather than #encode and #decode
MultiJSON deprecated these methods in 1.3.0 in favour of the new ones.
This requires an update to the gemspec to ensure ~>1.3
2012-04-20 13:09:14 +01:00
Kevin Chan
baf0f445e9 [joyent|compute] Added #list_datacenters 2012-04-10 15:46:57 +08:00
Kevin Chan
d9c2cc0036 cleanups + refactorings + better error reporting per joyent cloudapi spec 2012-02-27 23:14:11 -08:00
Kevin Chan
4ff115c1de - Fixes tests to run in both mock and non-mock mode
- Clean ups and fixes
2012-02-27 17:33:21 -06:00
Kevin Chan
501ad27c0f Revert "[joyent|compute] make password required"
This reverts commit 6e93321e29.

The reason for reverting this is Joyent's CloudAPI allows authenticating using
either a username/password credential pair OR using a username and SSH private key.

In http-signature authentication scheme, no password is used.
2012-02-27 17:33:20 -06:00
geemus
0d203bb511 [joyent|compute] make password required 2012-02-27 17:33:20 -06:00
Kevin Chan
8d901a0121 Credentials: cloudapi_* -> joyent_* for consistency 2012-02-27 17:33:20 -06:00
Kevin Chan
e403854446 GH-690 Joyent Cloud Provider
Squashed from fog/joyent
2012-02-27 17:33:20 -06:00