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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rackspace/server_api.rb +6 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 613adae95bdf05f10298fb52534437404c6858aa
4
- data.tar.gz: d3ba2b94a3234d556a2eab3ec727b51ea4780849
3
+ metadata.gz: 446b86b5a89e762ae77fb90df631090f7fcce78a
4
+ data.tar.gz: c32a8e34068818870d92142f6b337ea5237f0ce6
5
5
  SHA512:
6
- metadata.gz: 2080c5e3cce6b60ea3cf6fc5874b0faa325bd1ff021bb9e57dffeb948d920bac85da7b909fe41905065208a7f75a6450a20fe11394add298840184e83509e4b3
7
- data.tar.gz: 24c4abb9da37a0ed21b0ec69d10c2bcbb1bcbd5f1fbdc2d8629b6bf00e144fb704b13ad45533bde62737ffc2d473eaaa15dca2f958630ebf86d2c4bdf63da09f
6
+ metadata.gz: 6043ecb8dd08a6a89ba78dc73cff637e64184fb36e61a612685871e2543b0396505863be00a3da509ca8076c70b3568649502b38bab55f92902588b78375d721
7
+ data.tar.gz: 39103bc9110bf6c91b73a06bbbcea9f63fbdf9b70931e836065cc45755c6873a2c04b1d12b8847feb64e4961c88582f93765035cca246481f1ef904af7e6bd38
@@ -13,11 +13,11 @@ module Rackspace
13
13
  end
14
14
 
15
15
  def find_by_name(name)
16
- api.servers.detect {|i| i.name == name && i.state != 'DELETED'}
16
+ servers.detect {|i| i.name == name && i.state != 'DELETED'}
17
17
  end
18
18
 
19
19
  def create(params)
20
- api.servers.create(params)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digitalronin-rackspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Salgado