veronic 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/providers/ec2/instance.rb +5 -5
- data/veronic.gemspec +1 -1
- metadata +1 -1
@@ -12,7 +12,7 @@ module Provider
|
|
12
12
|
|
13
13
|
def stop
|
14
14
|
@logger.info "Stopping instance #{@name}..."
|
15
|
-
if self.
|
15
|
+
if self.exists?
|
16
16
|
@instance.stop
|
17
17
|
i = 0
|
18
18
|
while self.status != :stopped
|
@@ -26,12 +26,12 @@ module Provider
|
|
26
26
|
|
27
27
|
def start
|
28
28
|
@logger.info "Starting instance #{@name}..."
|
29
|
-
if self.
|
29
|
+
if self.exists?
|
30
30
|
while self.status == :stopping
|
31
31
|
sleep 2
|
32
32
|
end
|
33
33
|
@instance.start
|
34
|
-
i = 0
|
34
|
+
i = 0
|
35
35
|
while self.status != :running
|
36
36
|
@logger.info "." ; sleep 3 ; i += 1
|
37
37
|
return false if i > 120
|
@@ -100,7 +100,7 @@ module Provider
|
|
100
100
|
@instance.tags[k] = hash[k]
|
101
101
|
end
|
102
102
|
end
|
103
|
-
|
103
|
+
|
104
104
|
end
|
105
105
|
end
|
106
|
-
end
|
106
|
+
end
|
data/veronic.gemspec
CHANGED