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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec522cd9e46a3d7f619654ed781bd56c78f01186
4
- data.tar.gz: 966abf1ef88812ddb044664fdf17b561a0b33b1d
3
+ metadata.gz: 8ef4a20b9b3cd0f01778916f2a274711d805a06f
4
+ data.tar.gz: 5299063a2c12578a9caef2fbcbb609992324c36e
5
5
  SHA512:
6
- metadata.gz: 4805b73bd42dbbf2ebfd574267fb7e5daf0878b91b6ac9bd06527fa8b2ee2659fcd8b05976622309a60a36e1dce384d3d4379489aff513a72af8797f0e493133
7
- data.tar.gz: 2ff30dcf1993cfdfbe0ebdfed430be23fe279a00eb1e0eb06b570946ba94ba271c50f21da936185071987d4e48ceab7fcb97bf6e08e7df627d91aa266615b08e
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 2015 Tumblr Inc.
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}")
@@ -58,6 +58,10 @@ module Consolr
58
58
  def status node
59
59
  raise 'status is not implemented for this runner'
60
60
  end
61
+
62
+ def sensors node
63
+ raise 'sensors is not implemented for this runner'
64
+ end
61
65
  end
62
66
  end
63
67
  end
@@ -1,3 +1,3 @@
1
1
  module Consolr
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
data/lib/consolr.rb CHANGED
@@ -155,6 +155,8 @@ module Consolr
155
155
  puts runner.soft_reboot @node
156
156
  when options[:status]
157
157
  puts runner.status @node
158
+ when options[:sensors]
159
+ puts runner.sensors @node
158
160
  else
159
161
  begin
160
162
  puts "specify an action"
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.0
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-15 00:00:00.000000000 Z
12
+ date: 2016-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: collins_auth