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

26 commits

Author SHA1 Message Date
Paul Thornthwaite
f1a2701fa1 Merge pull request #1416 from fog/use_persisted
Make use of #persisted? method
2012-12-27 12:51:34 -08:00
Paul Thornthwaite
aa66911a4b [Brightbox] Adds #dns_name to server
Little known fact is that the public version of the domain name of a
Brightbox cloud server is the `fqdn` prefixed with public.

This is now fixed here until it is fixed in the main API and the value
can be referenced directly from the response.
2012-12-24 03:57:28 +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
Kyle Rames
3d306b6650 Updated Fog.wait_for to throw a timeout exception instead of returning false #1368 2012-12-12 12:14:44 -06:00
Paul Thornthwaite
362492b081 [Brightbox] Removes incorrect yard tag 2012-11-09 09:03:33 +00:00
Paul Thornthwaite
a80fa7c32a [Brightbox] Reuses connection for image selection
Fixes #1214 - Server initialisation failed unless you had a configuration
file because it tried to create a second connection directly using the
config details.

We now get access to the 'connection' that exists and use that so it is
already configured and authenticated.
2012-10-19 10:20:26 +01:00
Paul Thornthwaite
b221b97ba6 [brightbox|compute] Helper to get default image from API
* First will look for a configuration value brightbox_default_image
* Second will query the API for latest Ubuntu (ideally LTS)
2012-08-15 15:48:23 +01:00
Paul Thornthwaite
deb2ca830e [brightbox|compute] Implemented reboot using available API commands 2012-08-15 12:01:31 +01:00
Hemant Kumar
d91edcbb29 Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/brightbox/requests/compute/helper.rb
2012-07-25 17:09:19 +05:30
Paul Thornthwaite
4c21314b24 [brightbox|compute] Update format tests for "fqdn" attribute 2012-05-09 12:05:21 +01:00
Paul Thornthwaite
814e1f58e3 [brightbox|compute] Updated image reference where unfortunately hardcoded 2012-05-08 16:51:24 +01:00
Hemant Kumar
809a097523 Add fqdn to server attributes 2012-02-08 19:00:35 +05:30
Paul Thornthwaite
4577a80010 [brightbox] Correctly get Server's IP addresses as strings 2011-11-17 16:41:31 +00:00
Paul Thornthwaite
6fb4247c07 [brightbox] Updated default Ubuntu image 2011-11-17 16:41:30 +00:00
Hemant Kumar
3f221ba83b [Brightbox] Change logic of fetching zone and flavour_id 2011-10-24 16:12:37 +05:30
Hemant Kumar
1af384fb9e [Brightbox] Add zone/server_type attribute for Server 2011-10-14 16:02:01 +05:30
Hemant Kumar
60a3f4585f [Brightbox] Fix zone_id/flavour_id getter/setter for Server 2011-10-14 16:01:23 +05:30
Caius Durling
43846aef5f [brightbox] Pass along server_groups when creating a server 2011-09-30 11:08:12 +01:00
Paul Thornthwaite
440bbc30f5 [compute|brightbox] Reset times to the correct type so not string attributes 2011-09-09 17:56:44 +01:00
geemus
4002c9ff89 [compute|brightbox] move brightbox compute to its own shared area (namespacing should probably be corrected) 2011-08-24 20:31:12 -05:00
geemus
3be53104be [compute] consolidate 2011-01-07 16:52:09 -08:00
geemus
5854e249aa more consistent attribute storage/usage 2010-11-19 13:45:45 -08:00
Paul Thornthwaite
bc91f00f63 [brightbox] Removed Server description (obsolete field) 2010-11-16 11:11:53 -08:00
Paul Thornthwaite
42d8ba33cd [brightbox] Removed reboot action and request due to API change 2010-11-16 11:11:53 -08:00
Paul Thornthwaite
07bbc05951 [brightbox] Moved JSON parsing to request method to DRY up models, make requests easier to use 2010-11-16 11:11:53 -08:00
Paul Thornthwaite
0ec77fc5a5 [brightbox] Added support for Brightbox cloud API beta (http://beta.brightbox.com) 2010-11-16 11:11:53 -08:00