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

28 commits

Author SHA1 Message Date
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
Lance Ivy
1cdd969a34 create core for each provider. keep load hook for provider. 2014-02-01 21:13:17 -05:00
ccloes
78a1ceaa5a Removed host params for excon connections 2013-10-16 13:04:54 -07:00
James Bence
7fb0e3753e Refactor error handling
Match against the error object in both the old (against error.message)
and the new (against error.response.body); return a hash from this
method.

In the rescue block, try hard to raise an exception that includes the
code and message extracted from the error.
2013-07-02 19:39:23 -07:00
James Bence
b7b8367770 Inspect error.response.body, not error.message
Recent versions of excon have a middleware component,
Excon::Middleware::Expects and fog requests mostly record an expectation
of a 200 status code. Some calls to AWS return status other than 200 and
in some cases the error handling obscures the underlying error.

Current handling parsed error.message; this instance of error is
constructed by excon and includes the response as an attribute. The
message is always something like 'Expected(200) <=> Actual(404 Not Found)'
and so the parsing never succeeds.

Instead we now attempt to parse error.response.body which should allow
extraction of the underlying AWS Code value, which in turn will produce
an exception that points to the actual underlying cause.
2013-07-01 16:47:29 -07:00
Joe Kinsella
8f436e370b Using AWS::Compute::Error for CloudFormation errors produces erroneous error messages 2013-05-05 08:20:05 -04:00
Joe Kinsella
35b25fd4fa Adding support for AWS CloudFormation list_stacks and list_stack_resources API calls 2013-05-04 21:32:57 -04:00
VirtualStaticVoid
5e3ee29e58 fix for AWS error message parsing 2013-03-22 11:45:05 +02:00
Frederick Cheung
a715819976 [AWS] make beanstalk, cdn, cloudformation, cloudwatch, elasticache, elb, storage, rds, ses, sns, route53 temporary credential friendly 2012-06-20 23:26:04 +01:00
Frederick Cheung
38c75c85ab start an instance with an IAM profile and access the credentials 2012-06-20 23:17:46 +01:00
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
Kevin Menard
dcefc2d7de Fixed #875: Loosen multi_json version. 2012-04-25 10:31:28 -04:00
Pavel Repin
4603621dce Nix hardcoded regions: CloudFormation. 2012-02-02 15:38:40 -08:00
thattommyhall
e239c9e5ad added sa-east-1 region 2011-12-15 12:37:31 +00:00
geemus
cb3942d633 [aws] add us-west-2 region 2011-11-09 11:57:48 -06:00
Jason Roelofs
287c37abb2 Add CloudFormation UpdateStack call 2011-10-18 10:06:35 -04: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
Claudio Poli
507127a0c5 Use multi_json gem 2011-07-16 04:51:03 +02:00
geemus
768fcafaa9 [compute|aws] fix helpers to use Fog::AWS 2011-06-20 13:49:37 -07:00
Fabio Lessa
00a038dee0 enabling region parameter for AWS cloud formation requests 2011-03-28 20:51:30 +11:00
geemus
9257518c18 [aws|cloud_formation] cleanup + tests 2011-03-14 18:19:20 -07:00
geemus
1397c2d613 [aws] adding ap-northeast-1 (tokyo) region options 2011-03-02 10:57:52 -08:00
crazed
0d0dbc5dff fixed request ordering 2011-02-28 15:27:41 -08:00
crazed
70862b3de3 [aws|cloudformation] add basic CloudFormation support 2011-02-28 15:27:41 -08:00