digitalronin-rackspace 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba0533cf37abea8c1ea65902886a5268dc5a82d2
4
- data.tar.gz: aca6b07411ab9a37a6d96241ead65b4ee55b11d7
3
+ metadata.gz: 613adae95bdf05f10298fb52534437404c6858aa
4
+ data.tar.gz: d3ba2b94a3234d556a2eab3ec727b51ea4780849
5
5
  SHA512:
6
- metadata.gz: 05025ecc9ae813517a0d615b9afa49c40283c0d51534e3909605c90761f43a58da0f01346146c0ab993398357711fdee89626f3d61c8156b4bf4794c4db6e9e9
7
- data.tar.gz: 0a88db9edd98d95b489cfe523b1e8f058fe08882dc06b5c196ad7f7d29039220807b26773944d1ad0415e360d1a4ea28e653dfabc2b3df2ae7379e26627eae99
6
+ metadata.gz: 2080c5e3cce6b60ea3cf6fc5874b0faa325bd1ff021bb9e57dffeb948d920bac85da7b909fe41905065208a7f75a6450a20fe11394add298840184e83509e4b3
7
+ data.tar.gz: 24c4abb9da37a0ed21b0ec69d10c2bcbb1bcbd5f1fbdc2d8629b6bf00e144fb704b13ad45533bde62737ffc2d473eaaa15dca2f958630ebf86d2c4bdf63da09f
data/README.md CHANGED
@@ -8,8 +8,14 @@ A tool to manage Rackspace Cloud servers and Block Storage volumes
8
8
 
9
9
  USAGE
10
10
 
11
+ In your Gemfile
12
+
13
+ gem "digitalronin-rackspace", require: "rackspace"
14
+
11
15
  Create an 8G General Purpose VM with an attached 75G SATA block storage volume;
12
16
 
17
+ require 'rackspace'
18
+
13
19
  vm = Rackspace::Vm.new(
14
20
  size: 8,
15
21
  account: 'myaccount',
@@ -13,7 +13,7 @@ module Rackspace
13
13
  end
14
14
 
15
15
  def find_by_name(name)
16
- api.servers.detect {|i| i.name == name}
16
+ api.servers.detect {|i| i.name == name && i.state != 'DELETED'}
17
17
  end
18
18
 
19
19
  def create(params)
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Salgado