James Bence
f5dfebec84
Use specific error classes, not generic Fog::Compute::AWS::Error
2013-07-03 10:00:07 -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
Eric Hodel
701dfa31b5
Fix non-circular-require warnings
...
This fixes miscellaneous warnings in fog including unused variables,
indentation mismatch and one warning for a duplicated attr_reader.
2013-04-22 15:16:32 -07:00
VirtualStaticVoid
5e3ee29e58
fix for AWS error message parsing
2013-03-22 11:45:05 +02:00
Sean Hart
b492f64769
Adding describe_reserved_cache_nodes.rb
...
'
'
2013-01-16 16:41:15 -08:00
Benton Roberts
707c144e9e
[aws|elasticache] Add Elasticache service-level mocking support
2012-07-26 20:08:10 -04: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
Pavel Repin
b2f12931a5
Nix hardcoded regions: ElastiCache.
2012-02-02 15:39:16 -08:00
lostboy
fe424fdee9
add current set of elasticache endpoints
2011-12-14 22:14:44 +00:00
Benton Roberts
a73c5937bc
[aws|elasticache] implement describe_cache_groups request
2011-09-27 18:25:18 -05:00
Benton Roberts
e6a7bff3fb
[aws|elasticache] implement reset_cache_parameter_group request
2011-09-27 18:25:18 -05:00
Benton Roberts
6e5e7f9ef4
[aws|elasticache] implement modify_cache_parameter_group request
2011-09-27 18:25:17 -05:00
Benton Roberts
f397bf50ec
[aws|elasticache] implement Elasticache::ParameterGroup model and collection
2011-09-27 18:25:17 -05:00
Benton Roberts
0cf36a63b6
[aws|elasticache] implement describe_engine_default_parameters request
2011-09-27 18:25:17 -05:00
Benton Roberts
56d2c35fab
[aws|elasticache] implement basic parameter group requests
2011-09-27 18:25:17 -05:00
Benton Roberts
199693733b
[aws|elasticache] implement DescribeEvents
2011-09-27 18:25:17 -05:00
Benton Roberts
bb21207fa8
[aws|elasticache] implement RebootCacheCluster
2011-09-27 18:25:17 -05:00
Benton Roberts
03512ed40c
[aws|elasticache] add InvalidInstace error class
2011-09-27 18:25:16 -05:00
Benton Roberts
7c2e63075a
[aws|elasticache] implement modify_cache_cluster request
2011-09-27 18:25:16 -05:00
Benton Roberts
36d405f2a9
[aws|elasticache] move ClusterNotFound rescue code into Elasticache service definition
2011-09-27 18:25:15 -05:00
Benton Roberts
a6a6c3eb4b
[aws|elasticache] add Cache Cluster model and collection
2011-09-27 18:25:14 -05:00
Benton Roberts
351fc7c2f5
[aws|elasticache] delete cache clusters
2011-09-27 18:25:14 -05:00
Benton Roberts
47eea00ade
[aws|elasticache] create and describe cache clusters
2011-09-27 18:25:14 -05:00
Benton Roberts
bd98aa44d5
[aws|elasticache] refactor for whitespace / readability
2011-09-27 18:25:14 -05:00
Benton Roberts
5b66328a70
[aws|elasticache] refactor acs->elasticache
2011-09-27 18:25:14 -05:00