danarchy_sys 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/danarchy_sys/cli/instance_manager.rb +6 -8
- data/lib/danarchy_sys/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eafd54fbcc280cbb4ffdec86c4fafd0b2f5a1f288a8c719af9164613f2049d9e
|
4
|
+
data.tar.gz: 86fc6c2ebae022ee7333ee6c963b2101241bd46b4aa3ff9a14f3ec5ed7954f49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 573cdd0d5acc0d907544650e5757cc6e03294ccc83a113979382983a8319170687376b8a706579c1657051943bb18dd21cd473da923f69dc12b3d6ddd927ccd6
|
7
|
+
data.tar.gz: 944c6a768cd9f0ab3d835af107cd000b8da61d90c2e16491265a06b7b562ad22765598d47a940165853e7c43951e6636c4277fa45af99de4da7360a64c4da453
|
@@ -45,14 +45,12 @@ class InstanceManager
|
|
45
45
|
end
|
46
46
|
elsif cmd == 'status'
|
47
47
|
instance = @os_compute.instances.get_instance(instance.name)
|
48
|
-
if instance.state
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', instance.state)
|
55
|
-
end
|
48
|
+
if instance.state != 'ACTIVE'
|
49
|
+
printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', instance.state)
|
50
|
+
elsif @os_compute.ssh(instance, 'uptime')[:stderr]
|
51
|
+
printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', 'WAITING')
|
52
|
+
else
|
53
|
+
printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', instance.state)
|
56
54
|
end
|
57
55
|
elsif %w(pause unpause suspend resume start stop).include?(cmd.to_s)
|
58
56
|
status = instance.state
|
data/lib/danarchy_sys/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danarchy_sys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan James
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-openstack
|