consolr 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/consolr +1 -0
- data/lib/consolr/runners/ipmitool.rb +4 -0
- data/lib/consolr/runners/runner.rb +4 -0
- data/lib/consolr/version.rb +1 -1
- data/lib/consolr.rb +2 -0
- 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: 8ef4a20b9b3cd0f01778916f2a274711d805a06f
|
4
|
+
data.tar.gz: 5299063a2c12578a9caef2fbcbb609992324c36e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f1bc39bfb8c38cf952a342e145dcedb6100ace28fe41714035c799ccfa439dcdb18d7f06e2a1d552f16855fae584d0b7bb2bfa83ff691db4cdf0d6c56cf7224
|
7
|
+
data.tar.gz: 622e10be3de466e64254964f4012efe46fabf1b521a6c33217803a329bcf88863c1db4bf682cc50c7d55870a3e02e93c1ae9a12269c4acf508229c0cc23e9b71
|
data/README.md
CHANGED
@@ -141,7 +141,7 @@ http://groups.google.com/group/collins-sm
|
|
141
141
|
Please report any bugs or submit a request for a patch here : <https://github.com/tumblr/collins/issues/>
|
142
142
|
|
143
143
|
## License
|
144
|
-
Copyright
|
144
|
+
Copyright 2016 Tumblr Inc.
|
145
145
|
|
146
146
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
147
147
|
this file except in compliance with the License. You may obtain a copy of the
|
data/bin/consolr
CHANGED
@@ -24,6 +24,7 @@ opt_parser = OptionParser.new do |opt|
|
|
24
24
|
opt.on('-x', '--off', 'turn off node') { options[:off] = true }
|
25
25
|
opt.on('-X', '--soft-off', 'turn off gracefully (via ACPI)') { options[:soft_off] = true }
|
26
26
|
opt.on('-S', '--status', 'print asset power status') { options[:status] = true }
|
27
|
+
opt.on('-L', '--sensors', 'print list of sensor values') { options[:sensors] = true }
|
27
28
|
opt.on('--runner RUNNER', 'specify the runner to use') { |runner| options[:runner] = runner }
|
28
29
|
|
29
30
|
opt.on_tail('-h', '--help', 'help') { puts opt; exit 0 }
|
@@ -71,6 +71,10 @@ module Consolr
|
|
71
71
|
cmd 'power status', node
|
72
72
|
end
|
73
73
|
|
74
|
+
def sensors node
|
75
|
+
cmd 'sensor list', node
|
76
|
+
end
|
77
|
+
|
74
78
|
private
|
75
79
|
def cmd action, node
|
76
80
|
system("#{@ipmitool} -I lanplus -H #{node.ipmi.address} -U #{node.ipmi.username} -P #{node.ipmi.password} #{action}")
|
data/lib/consolr/version.rb
CHANGED
data/lib/consolr.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consolr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Richard
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: collins_auth
|