phpfog-fog 0.4.1.2 → 0.4.1.3
Sign up to get free protection for your applications and to get access to all the features.
data/fog.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'phpfog-fog'
|
10
|
-
s.version = '0.4.1.
|
10
|
+
s.version = '0.4.1.3'
|
11
11
|
s.date = '2011-01-21'
|
12
12
|
s.rubyforge_project = 'fog'
|
13
13
|
|
@@ -34,7 +34,20 @@ module Fog
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def ready?
|
37
|
-
@state == 'On'
|
37
|
+
@state && @state["name"] == 'On'
|
38
|
+
end
|
39
|
+
|
40
|
+
def reload
|
41
|
+
requires :name
|
42
|
+
begin
|
43
|
+
if data = collection.get(name)
|
44
|
+
new_attributes = data.attributes
|
45
|
+
merge_attributes(new_attributes)
|
46
|
+
self
|
47
|
+
end
|
48
|
+
rescue Excon::Errors::BadRequest
|
49
|
+
false
|
50
|
+
end
|
38
51
|
end
|
39
52
|
|
40
53
|
def save
|
@@ -47,7 +60,6 @@ module Fog
|
|
47
60
|
}
|
48
61
|
options = options.reject {|key, value| value.nil?}
|
49
62
|
data = connection.grid_server_add(name, image, ip, options)
|
50
|
-
puts data.body.inspect
|
51
63
|
merge_attributes(data.body)
|
52
64
|
true
|
53
65
|
end
|
@@ -21,7 +21,7 @@ module Fog
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def get(server_id)
|
24
|
-
if server_id && server = connection.grid_server_get(server_id).body['list']
|
24
|
+
if server_id && server = connection.grid_server_get(server_id).body['list'].first
|
25
25
|
new(server)
|
26
26
|
end
|
27
27
|
rescue Fog::GoGrid::Compute::NotFound
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phpfog-fog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 109
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
9
|
- 1
|
10
|
-
-
|
11
|
-
version: 0.4.1.
|
10
|
+
- 3
|
11
|
+
version: 0.4.1.3
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- geemus (Wesley Beary)
|