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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fa06d731f4c92e454a03334fa7c3964ca767371
4
- data.tar.gz: b44f30a0dbaac3f827206cb03065b87b176aca18
3
+ metadata.gz: 909e9f89338418efa785be0451d5ac92efde5d8c
4
+ data.tar.gz: 49af40c47f81489fecbfadfa21ef39f4008dc607
5
5
  SHA512:
6
- metadata.gz: e82b0c6a6924df2d1b3905ae08d01c50814cf8f031560571aac52e67786ce7cd5724a74d094f356cab1a76de75ecdfe4d7ae897eac6fe1725a430d1201698a3a
7
- data.tar.gz: 9cf7bb1593c2edf7489e44ce0d20e476225b71eb48fa490faed22fb69f4a8fe2b69bdca7976439c2ead7f28186fcaad120b8cfdd0502a81b501a2590f2c054f0
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('loadavg5')) do|lvg|
19
- host = Malsh.host_by_id lvg.first
20
- host.name if (!lvg.last.loadavg5.respond_to?(:value) || !lvg.last.loadavg5.value)
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
@@ -1,3 +1,3 @@
1
1
  module Malsh
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
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.8
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-03-02 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor