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

1912 commits

Author SHA1 Message Date
geemus
2404e029c6 [dns|dynect] fixes to play nice with mocked test runs 2011-08-16 11:57:46 -05:00
geemus
7fecd4fc60 [rackspace|load_balancers] fixes to play nice with mock test runs 2011-08-16 11:57:46 -05:00
Mark A. Miller
b002a1c10e * Fix VirtualBox in compute case statement
VirtualBox was not able to be called as a service otherwise.
2011-08-14 09:20:26 -05:00
Mark A. Miller
f3e2c939f4 * Changed LoadError to Fog::Error::LoadError when missing configuration
* When running from command line, rescue the exception, and print the help message

When running fog for the first time with no setup, the missing_exception message
was surrounded above and below with a stack trace, which is not particularly
user-friendly. Since we've rescuing the LoadError only in bin/fog, we know
we don't have to worry about higher level libraries not getting the exception,
since it wouldn't propagate between processes.

Changing LoadError to Fog::Error::LoadError lets us know that this was
an issue on fog's part, rather than some other library we might be
using. Since we inherit from the LoadError class, any higher-level
libraries that were using a rescue based on LoadError will still work.
2011-08-14 08:09:35 -05:00
geemus
01544701aa [storage] fix deprecated get_url usage 2011-08-12 11:00:47 -05:00
geemus
c2e29c0f9d [compute] add server base class to contain shared stuff (scp/ssh) 2011-08-11 11:54:29 -05:00
geemus
a7f9b5a053 [compute|aws] identity not needed for setup 2011-08-09 13:40:26 -05:00
geemus
bfe7efdd10 [compute|aws] fixes for bootstrap and placing attributes json 2011-08-09 13:39:43 -05:00
geemus
05b66ee6c7 [compute|aws] guard tag creation against empty tag set 2011-08-09 13:39:02 -05:00
geemus
ad3ad56f10 [compute|aws] add docs for new options on run_instances
closes 
2011-08-08 16:19:51 -05:00
geemus
d82a1e13bb [compute|aws] add support for saving assigned tags at server creation time
closes 
2011-08-08 12:17:14 -05:00
John Ferlito
5b3b1888ad Add force stop functionality to AWS Instance
AWS allows you to add a force option to the stop request. This performs
the equivalent of a power off, rather thank asking the OS to shutdown.
2011-08-08 17:32:25 +10:00
Andre Meij
c09865e646 - Write files as binary (otherwise UTF8 - ASCII errors can occur)
- Check if File exists before trying to delete it (paperclip sometimes deletes files twice)
 - Check if Directory exists before trying to "cd" into it.
2011-08-05 15:37:53 +02:00
Dylan Egan
2165c31629 Back to using Owner. A couple of tests for it too. 2011-08-04 15:19:11 -07:00
geemus
d2e06e96ca [rackspace|loadbalancers] cleanup
pluralize service name
use multi_json
fix directory structure for consistency
2011-08-04 16:21:22 -05:00
geemus
4a2da72eab [dns|dynect] cleanup of initial implementation 2011-08-04 16:01:00 -05:00
Michael Hale
a772360de7 dynect: nicer filter api for records 2011-08-04 16:01:00 -05:00
Michael Hale
f47e4c8af0 dynect: add a bunch of stuff: node_list, list_any_records, handle 307 job
redirect,
2011-08-04 16:01:00 -05:00
Michael Hale
6c6f2108a2 hook up zones.get 2011-08-04 16:01:00 -05:00
Michael Hale
95c8958caa hook up zones model 2011-08-04 16:01:00 -05:00
Michael Hale
dd556d0a29 add zone request to show information for a single zone 2011-08-04 16:01:00 -05:00
Michael Hale
368265fa84 rename zone request to zones 2011-08-04 16:01:00 -05:00
Michael Hale
02beddb1ac tests passing 2011-08-04 16:01:00 -05:00
Michael Hale
fdb90eda30 WIP: add stub model classes 2011-08-04 16:00:59 -05:00
Michael Hale
8354d3c043 require builder in dynect 2011-08-04 16:00:59 -05:00
Michael Hale
0595cd7dfb parse the list of zones returned 2011-08-04 16:00:59 -05:00
Michael Hale
8128ea58d3 fix API-Token in mock session request 2011-08-04 16:00:59 -05:00
Michael Hale
d006e59148 add zone request 2011-08-04 16:00:59 -05:00
Michael Hale
6f00b04f38 change API-Token to Auth-Token 2011-08-04 16:00:59 -05:00
Michael Hale
8c0ee52e04 include /REST in all requests 2011-08-04 16:00:59 -05:00
Michael Hale
bac6906534 whoops forgot to add these files 2011-08-04 16:00:59 -05:00
Michael Hale
146d6e8b0c parse session request and fix mock for tests 2011-08-04 16:00:59 -05:00
Michael Hale
7b8d8d52bc enable mocking for dynect 2011-08-04 16:00:58 -05:00
Michael Hale
c55097ee8d add dynect provider and cleanup extra requires 2011-08-04 16:00:58 -05:00
Michael Hale
4906eae3df add dynect DNS provider with session request implemented 2011-08-04 16:00:58 -05:00
Dylan Egan
0776800b94 Set imageOwnerAlias to self. Not 100% on this, but it will allow you to search for images with 'owner-alias' => 'self' 2011-08-04 12:43:57 -07:00
Dylan Egan
a61f1d8e30 [compute|aws] Whitespace removal. 2011-08-04 09:25:10 -07:00
geemus
ea1de32943 [compute|aws] add modify_image_attribute 2011-08-04 10:12:20 -05:00
geemus
1708c475f8 [compute|aws] update modify image/snapshot attribute to match latest API 2011-08-04 10:12:02 -05:00
geemus
3a6c9f1979 [storage|aws] simplify region accessor 2011-08-04 09:41:02 -05:00
Wesley Beary
49b7c122ab Merge pull request from skippy/master
[storage|aws] clean up multi-region directory creation
2011-08-04 07:36:35 -07:00
Dylan Egan
efd3f84557 Allow tag filtering for images. 2011-08-03 17:48:29 -07:00
Dylan Egan
b6f2a9ff33 Store it under the ID, not the name. 2011-08-03 17:24:11 -07:00
Dylan Egan
0fe20fbad6 register_image mocking support. 2011-08-03 16:58:32 -07:00
geemus
ed2ed94d3f [compute|aws] fix pluralization of modify_image_attribute 2011-08-03 17:20:53 -05:00
Erik Terpstra
c738d59b53 [aws|s3] Added basic tests for get_bucket, fixed a bug in get_bucket with delimiter option, tests succeed for both mocked and real situation 2011-08-03 21:21:24 +02:00
geemus
4862063e27 [dns|zerigo] add host/port/scheme to recognizes
closes 
2011-08-03 09:44:05 -05:00
geemus
63c6f35668 Merge branch 'master' of github.com:geemus/fog 2011-08-03 09:42:00 -05:00
Fujimura Daisuke
81931f15e9 [aws|s3] Require 'multi_json' was lucked 2011-08-03 17:52:54 +09:00
Fujimura Daisuke
236d7efa8f [aws|s3] policy should be base64 encoded and not contain new lines
see: http://docs.amazonwebservices.com/AmazonS3/latest/dev/HTTPPOSTForms.html
2011-08-03 17:30:02 +09:00