malsh 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/malsh/cli.rb +3 -3
- data/lib/malsh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 909e9f89338418efa785be0451d5ac92efde5d8c
|
4
|
+
data.tar.gz: 49af40c47f81489fecbfadfa21ef39f4008dc607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcc02b83833ad620e47ab21c3cc5a99c8ecb4a74ccf95e788b7fc13f3a1ac2c187ad5a5c5ba4af36e3dd528645b6c267fca2b27d87571450dc7d3f3e8e1cf754
|
7
|
+
data.tar.gz: 5627a26be7a04d0bd7ed5fe5eebdf713bac8251da1a7dbb7a9f4a94b78b469f930c328882e845dce24891577d31b993494b6194fe6d08fd3d4789a419da62f23
|
data/lib/malsh/cli.rb
CHANGED
@@ -15,9 +15,9 @@ module Malsh
|
|
15
15
|
def retire
|
16
16
|
Malsh.init options
|
17
17
|
|
18
|
-
host_names = Parallel.map(Malsh.metrics('
|
19
|
-
host = Malsh.host_by_id
|
20
|
-
host.name if (!
|
18
|
+
host_names = Parallel.map(Malsh.metrics('memory.used')) do|memory|
|
19
|
+
host = Malsh.host_by_id memory.first
|
20
|
+
host.name if (!memory.last["memory.used"].respond_to?(:value) || !memory.last["memory.used"].value)
|
21
21
|
end.flatten.compact
|
22
22
|
|
23
23
|
Malsh.notify("退役未了ホスト一覧", host_names)
|
data/lib/malsh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: malsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kazuhiko yamahsita
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|