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.
- checksums.yaml +4 -4
- data/lib/rackspace/vm.rb +2 -1
- 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: af53a018f41b0ad0ad1f063b5a8af0732a7adcfb
|
4
|
+
data.tar.gz: c6632487aff07cf92fda2edc9231408f226ef39e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|