Commit Graph

32 Commits

Author SHA1 Message Date
Paul Thornthwaite ec8b940b2c Standardise on collection methods
Done with `rubocop --auto-correct --only CollectionMethods`
2014-05-26 16:22:07 +01:00
Paul Thornthwaite 330a351ade Remove trailing blank lines
Done with `rubocop --auto-correct --only TrailingBlankLines`
2014-05-26 14:35:26 +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 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
Paul Thornthwaite 15ef5365e5 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
2014-02-19 14:58:00 +00:00
Paul Thornthwaite 8483a599f2 Remove trailing whitespace 2014-02-19 12:30:59 +00:00
Lance Ivy f9a5b9e942 don't require service when registering it
services will still be required when you:
* require them yourself
* require the entire provider (which requires all services)
2014-02-01 22:02:40 -05: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
Kyle Rames 01518d380c [core] updating Server models to use ssh_ip_address rather than public_ip_address 2014-01-22 14:18:35 -06:00
Paul Thornthwaite 0653f7b5b4 [clodo] Updates reference to service 2013-01-07 20:53:27 +00:00
Paul Thornthwaite 40c0cd7122 Make use of #persisted? method
In many places we were checking for identity which was the shorthand for
checking if the resource had been saved by the service.

The #persisted? method was added to show a clearer intent and also offer
minimal ActiveModel interface
2012-12-23 02:45:05 +00:00
Carlos Sanchez a25691ed23 Move ssh private_key, public_key, username to Server model to reduce duplication 2012-10-31 12:31:49 +01: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
Stepan G. Fedorov 9a578d4303 [clodo|compute] Fix move_ip_address behaviour. 2011-12-02 16:24:23 +04:00
Stepan G. Fedorov cf5be851f0 [clodo|compute] Fix delete_server mock. 2011-12-02 16:24:23 +04:00
Stepan G. Fedorov a0b696629d [clodo|compute] Enable ip-management. 2011-12-02 16:24:23 +04:00
Stepan G. Fedorov 299e1f7960 [clodo|compute] Rename moveip to move_ip_address. 2011-12-02 16:24:23 +04:00
Stepan G. Fedorov 790454bf54 [clodo|compute] Add ip-address management. 2011-12-02 16:24:23 +04:00
Stepan G. Fedorov ec2835dddf [clodo|compute] Remove ddosprotect field from Mock. 2011-11-25 12:48:42 +04:00
Stepan G. Fedorov f1ef97f59f [clodo|compute] Enable :get_image_details 2011-11-08 15:05:41 +04:00
Stepan G. Fedorov 1059a90a53 [clodo|compute] Actualize Mocks. 2011-11-08 15:01:58 +04:00
NomadRain b09efb5448 [clodo] Some cleanup before pool request. 2011-10-30 21:04:44 +03:00
Stepan G Fedorov 618f76e56b [clodo|compute] server.ssh with password. Not only with key. 2011-10-30 21:04:44 +03:00
Stepan G Fedorov d20d42c615 [clodo|compute] I don't know what is ignore_awful_caching, so i removed it. 2011-10-30 21:04:43 +03:00
NomadRain 0738a84cf6 [clodo|compute] Bug fixes. 2011-10-30 21:04:43 +03:00
Обоев Рулон ибн Хаттаб fe2dacec55 [clodo|compute] Added missing field (server.type) 2011-10-30 21:04:43 +03:00
NomadRain 712f11bbb4 [clodo] : Added missing field. 2011-10-30 21:04:43 +03:00
Обоев Рулон ибн Хаттаб 05d1ae032d Add clodo support. 2011-10-30 21:04:42 +03:00