rubyipmi 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -25,20 +25,38 @@ It provides a ruby implementation of ipmi commands that will make it simple to c
25
25
 
26
26
 
27
27
  #### Use power functions (not all listed)
28
- <pre>
28
+ `
29
29
  conn.chassis.power.on
30
30
  conn.chassis.power.off
31
31
  conn.chassis.power.on?
32
32
  conn.chassis.power.off?
33
33
  conn.chassis.power.cycle
34
- </pre>
34
+ `
35
35
 
36
36
  #### Boot to specific device
37
- <pre>
37
+ `
38
38
  conn.chassis.bootpxe(true, false) # reboot after setting, one time boot only - non persistent
39
39
  conn.chassis.bootdisk(false, false) # boot to disk on next reboot, don't reboot automatically
40
40
 
41
- </pre>
41
+ `
42
+
43
+
44
+ #### Sensors
45
+ `
46
+ conn.sensors.names
47
+ conn.sensors.list
48
+ conn.sensors.<sensor name>
49
+
50
+ `
51
+
52
+ #### Fru
53
+ `
54
+ conn.fru.list
55
+ conn.fru.serial
56
+ conn.fru.manufacturer
57
+ conn.fru.product
58
+
59
+ `
42
60
 
43
61
  ## Testing
44
62
  There are a series of automated rspec tests that test the functionality of this library with the ipmi device.
@@ -52,10 +70,13 @@ DO NOT PERFORM THESE TEST ON ANY PRODUCTION SYSTEM. THESE TESTS WILL TURN OFF T
52
70
  3. rake ipmiuser=ipmiuser ipmipass=ipmiuserpass ipmihost=192.168.1.22 ipmiprovider=freeipmi (fill in your your details)
53
71
  4. report any failures with your make/model/firmware revision to corey@logicminds.biz
54
72
 
55
- ## Security
56
- Currently security is not enforced in the development process. Furthermore, the rubyipmi library uses the same methods
57
- currently provided by the C based freeipmi command line tools. This includes the use of freeipmi.conf file. You can easily
58
- store credentials in this file which will be included automatically via the command line.
73
+ ## Security
74
+ The only security used throughout the library is the use of temporary password files that store the password while
75
+ the command is being executed. This password file is created and deleted on the fly with every library call.
76
+ The password will not be shown in any logs or process lists due to this enhancement. The filename is a long random string
77
+ as is the folder name so it would be difficult to guess the password file. If for some reason a command takes a long
78
+ time to run anyone could get the location of the file but the file is 0600 so it should not be readable by anyone outside
79
+ of the process.
59
80
 
60
81
 
61
82
  ## How the library works
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -4,7 +4,7 @@ require 'rubyipmi/commands/basecommand'
4
4
  require 'rubyipmi/freeipmi/commands/basecommand'
5
5
 
6
6
  Dir[File.dirname(__FILE__) + '/commands/*.rb'].each do |file|
7
- require "#{file.split(".rb").first}"
7
+ require file
8
8
  end
9
9
  module Rubyipmi
10
10
  module Freeipmi
@@ -4,7 +4,7 @@ require 'rubyipmi/commands/basecommand'
4
4
  require 'rubyipmi/ipmitool/commands/basecommand'
5
5
 
6
6
  Dir[File.dirname(__FILE__) + '/commands/*.rb'].each do |file|
7
- require "#{file.split(".rb").first}"
7
+ require file
8
8
  end
9
9
 
10
10
  module Rubyipmi
data/rubyipmi.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rubyipmi"
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Osman"]
12
- s.date = "2012-08-28"
12
+ s.date = "2013-04-03"
13
13
  s.description = "A ruby wrapper for ipmi command line tools that supports ipmitool and freeipmi"
14
14
  s.email = "corey@logicminds.biz"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyipmi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Osman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-28 00:00:00 Z
18
+ date: 2013-04-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement
@@ -29,10 +29,10 @@ dependencies:
29
29
  - 8
30
30
  - 0
31
31
  version: 2.8.0
32
- version_requirements: *id001
33
- name: rspec
34
32
  prerelease: false
35
33
  type: :development
34
+ name: rspec
35
+ version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
37
37
  requirement: &id002 !ruby/object:Gem::Requirement
38
38
  none: false
@@ -44,10 +44,10 @@ dependencies:
44
44
  - 3
45
45
  - 12
46
46
  version: "3.12"
47
- version_requirements: *id002
48
- name: rdoc
49
47
  prerelease: false
50
48
  type: :development
49
+ name: rdoc
50
+ version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
52
52
  requirement: &id003 !ruby/object:Gem::Requirement
53
53
  none: false
@@ -60,10 +60,10 @@ dependencies:
60
60
  - 1
61
61
  - 5
62
62
  version: 1.1.5
63
- version_requirements: *id003
64
- name: bundler
65
63
  prerelease: false
66
64
  type: :development
65
+ name: bundler
66
+ version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
68
68
  requirement: &id004 !ruby/object:Gem::Requirement
69
69
  none: false
@@ -76,10 +76,10 @@ dependencies:
76
76
  - 8
77
77
  - 4
78
78
  version: 1.8.4
79
- version_requirements: *id004
80
- name: jeweler
81
79
  prerelease: false
82
80
  type: :development
81
+ name: jeweler
82
+ version_requirements: *id004
83
83
  - !ruby/object:Gem::Dependency
84
84
  requirement: &id005 !ruby/object:Gem::Requirement
85
85
  none: false
@@ -90,10 +90,10 @@ dependencies:
90
90
  segments:
91
91
  - 0
92
92
  version: "0"
93
- version_requirements: *id005
94
- name: rcov
95
93
  prerelease: false
96
94
  type: :development
95
+ name: rcov
96
+ version_requirements: *id005
97
97
  description: A ruby wrapper for ipmi command line tools that supports ipmitool and freeipmi
98
98
  email: corey@logicminds.biz
99
99
  executables: []