digitalronin-rackspace 0.1.4 → 0.1.5

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/vm.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d9fac3c958eaa306568b54a866a4ac7cd19af0e
4
- data.tar.gz: 70bc9b1958c73a7fba66d95e88189bb5128625ba
3
+ metadata.gz: af53a018f41b0ad0ad1f063b5a8af0732a7adcfb
4
+ data.tar.gz: c6632487aff07cf92fda2edc9231408f226ef39e
5
5
  SHA512:
6
- metadata.gz: 98ec2bec82f8a9c834c883d853ecc17f2682f4a395e0506e578c32a79d0f7c24461b1f3cf0639eb78776d11dafaed5c32ee0e24f47b4d223f405fccd1f8eb9df
7
- data.tar.gz: 3ab07594073f14c4b565f1e201c2fe9ecbe4a7329c76a2c3591138d0adc00e5025f78ebc634ad645310c6e0209017e597dfdc3896678fd169714cd39b9dd4958
6
+ metadata.gz: 027976c188120dd6b5bd24f4e780673afa97f79345744b461324ac31ea88aaa9ac0fdf0ab414bfb7290afd6ac9f1e8cf76c6a879bb608f016767479aa94c384f
7
+ data.tar.gz: 585ae46652270953b905e4f689614cb6aca0b407031da6f36116876a8e79fa2bbe8981dbfcba1843c51206ef6dab529b1ad145cc305a7bce7cbe390bf88c90ae
data/lib/rackspace/vm.rb CHANGED
@@ -9,6 +9,7 @@ module Rackspace
9
9
  @size = params.fetch(:size, DEFAULT_SIZE)
10
10
  @flavor_id = params.fetch(:flavor_id, "#{DEFAULT_FLAVOUR}-#{size}")
11
11
  @volume_definition = params[:volume]
12
+ @state = params[:state] # Allow this to be passed in, if we know it already
12
13
  end
13
14
 
14
15
  def create
@@ -44,7 +45,7 @@ module Rackspace
44
45
  end
45
46
 
46
47
  def state
47
- server.state
48
+ @state ||= server.state
48
49
  end
49
50
 
50
51
  def attach_volume(vol)
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Salgado