Paul Thornthwaite
ec8b940b2c
Standardise on collection methods
...
Done with `rubocop --auto-correct --only CollectionMethods`
2014-05-26 16:22:07 +01:00
Paul Thornthwaite
2e0b7e545a
Standardise empty lines throughout codebase
...
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
2014-05-26 14:20:02 +01:00
Paul Thornthwaite
51cb839405
[GH-1390] Remove redundant calls to Fog.credentials
...
If you use the supported means to create services such as:
Fog::Service.new(:provider => "Example")
It already loads the contents of `~/.fog` and filters the values based
on if they are recognised or required.
That means in a number of services that are initialising based on
`options` or a value from `Fog.credentials` both are the same.
The `options` should have been loaded and merged from credentials in the
service "builder".
2014-03-27 09:25:13 +00:00
Paul Thornthwaite
0e1daf3ddd
[GH-2711] Replace Fog::Connection with XML shim
...
Unlike last attempt this replaces Fog::Connection with
Fog::XML::Connection which should be directly compatible.
Fog::Connection is there for old PRs but should be removed real soon.
Providers using JSON should be able to replace "XML" with "Core" within
their code to cut down on the dependency.
If I get the time I may attempt to clean up some but testing with Mock
will mean that is mostly educated guesswork.
2014-02-27 00:54:17 +00:00
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
Lance Ivy
1cdd969a34
create core for each provider. keep load hook for provider.
2014-02-01 21:13:17 -05:00
Lance Ivy
c27901dc8c
ensure that each service requires its provider
2014-02-01 13:07:49 -05:00
Sean Handley
700a33069a
Don't delete the options if they were never there!
2013-06-07 14:31:47 +01:00
Sean Handley
888bcc5d81
Options get formed into the body.
2013-06-07 14:18:51 +01:00
Sean Handley
b5f3f064e4
Whitespace.
2013-06-07 14:18:25 +01:00
Sean Handley
c74e39d9a8
Add new request methods to server object.
2012-07-15 13:40:03 +02:00
Sean Handley
14efc2f14c
Added loading of standard image.
...
Currently not working:
Expected(204) <=> Actual(404 Not Found)
request => {:connect_timeout=>60, :headers=>{"Authorization"=>"Basic YWE4ZWIxYzktYzc4OC00MDlmLWJmZjQtYjAyMjVjMDE0MDQ1OkFkZ1hYSGVUTmY3TTJHR1l2NEI3WkpnWE1ISkJMY1E2dlJBejRZUUg=", "Accept"=>"application/json", "Host"=>"api.z1-man.serverlove.com:443", "Content-Length"=>0}, :instrumentor_name=>"excon", :mock=>false, :read_timeout=>60, :retry_limit=>4, :ssl_ca_file=>"/Users/seanhandley/.rvm/gems/ruby-1.9.3-p125@fog_gem/gems/excon-0.14.1/data/cacert.pem", :ssl_verify_peer=>true, :write_timeout=>60, :host=>"api.z1-man.serverlove.com", :path=>"/drives/aea15650-5001-4cb8-8146-8c9835f5b880/image/679f5f44-0be7-4745-a658-cccd4334c1aa", :port=>"443", :query=>nil, :scheme=>"https", :method=>"post", :expects=>204}
response => #<Excon::Response:0x007ff661811848 @body="Operation failed: drive not found\n", @headers={"Server"=>"BaseHTTP/0.3 Python/2.6.6", "Date"=>"Fri, 22 Jun 2012 15:03:50 GMT", "X-Elastic-Error"=>"missing drive", "Connection"=>"close", "Content-Type"=>"text/plain"}, @status=404> (Excon::Errors::NotFound)
2012-06-22 16:09:17 +01:00
James Rose
36b19d5ff1
Typo.
2012-06-22 11:06:36 +01:00
James Rose
873d969d9c
Merge changes. Begin server definitions.
2012-06-22 11:03:48 +01:00
Sean Handley
24b7ba1eab
Added get_image function.
2012-04-29 21:38:29 +01:00
Sean Handley
a809a07178
Fog calls drives "images", rename for consistency.
2012-04-29 17:36:16 +01:00
Sean Handley
847712e0ae
Allowed setting of params as k/v pairs.
...
This is needed for setting the request body for
create/update calls.
2012-04-29 14:03:46 +01:00
seanhandley
4331d171ee
Made steps to get update/create working. Work in progress.
2012-04-27 21:53:39 +01:00
Sean Handley
02db287340
Sometimes the response body is empty.
2012-04-27 15:17:56 +01:00
Sean Handley
5cc1b4699e
Set up drive objects (not disks).
2012-04-27 14:43:52 +01:00
James Rose
86ac91ac22
We want JSON.
2012-04-27 14:35:08 +01:00
James Rose
1a5e39606c
Works.
2012-04-27 14:31:12 +01:00
James Rose
39d5e6729b
Still wrong.
2012-04-27 14:08:24 +01:00
James Rose
fa4aa9859d
Typo.
2012-04-27 12:26:13 +01:00
James Rose
08cf679268
Typo
2012-04-27 12:17:05 +01:00
James Rose
a627445d63
Basic Serverlove implementation.
2012-04-27 12:11:33 +01:00
James Rose
fbc6e38487
Add Serverlove directory.
2012-04-27 11:26:16 +01:00