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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae1b8eab99bb157d001589fa28a41737d38cc60fb5498b420f9582d2786581ab
4
- data.tar.gz: bd8dd9fb8b553c463f485e8558c64f8436dd949371f8d4cd8de8d348ddf6c2a3
3
+ metadata.gz: eafd54fbcc280cbb4ffdec86c4fafd0b2f5a1f288a8c719af9164613f2049d9e
4
+ data.tar.gz: 86fc6c2ebae022ee7333ee6c963b2101241bd46b4aa3ff9a14f3ec5ed7954f49
5
5
  SHA512:
6
- metadata.gz: 4f2b6dd1475b4104b70b484ea387ebb413c8284ea950a56698a8130754708330cd954a9abaa0945dbec568a8832b8269d86a93a2ecffb5632ae7729a21da6c04
7
- data.tar.gz: 272712c6dba0a4dee48dd13d851b5507c88599e051fa0803e6d1c651a6b82b89a599c8e8027211bae8908f10018f541d49925ea856b32fdd62a09057ce9c3a19
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 == 'ACTIVE'
49
- uptime_result = @os_compute.ssh(instance, 'uptime')
50
-
51
- if uptime_result[:stderr]
52
- printf("%#{instance.name.size}s %0s %0s\n", instance.name, ' => ', 'WAITING')
53
- else
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
@@ -1,3 +1,3 @@
1
1
  module DanarchySys
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2018-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-openstack