digitalronin-rackspace 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rackspace/server_api.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 446b86b5a89e762ae77fb90df631090f7fcce78a
|
4
|
+
data.tar.gz: c32a8e34068818870d92142f6b337ea5237f0ce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6043ecb8dd08a6a89ba78dc73cff637e64184fb36e61a612685871e2543b0396505863be00a3da509ca8076c70b3568649502b38bab55f92902588b78375d721
|
7
|
+
data.tar.gz: 39103bc9110bf6c91b73a06bbbcea9f63fbdf9b70931e836065cc45755c6873a2c04b1d12b8847feb64e4961c88582f93765035cca246481f1ef904af7e6bd38
|
data/lib/rackspace/server_api.rb
CHANGED
@@ -13,11 +13,11 @@ module Rackspace
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def find_by_name(name)
|
16
|
-
|
16
|
+
servers.detect {|i| i.name == name && i.state != 'DELETED'}
|
17
17
|
end
|
18
18
|
|
19
19
|
def create(params)
|
20
|
-
|
20
|
+
servers.create(params)
|
21
21
|
wait_for params.fetch(:name)
|
22
22
|
end
|
23
23
|
|
@@ -27,6 +27,10 @@ module Rackspace
|
|
27
27
|
img
|
28
28
|
end
|
29
29
|
|
30
|
+
def servers
|
31
|
+
api.servers
|
32
|
+
end
|
33
|
+
|
30
34
|
private
|
31
35
|
|
32
36
|
def object_type
|