rubyipmi 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rubyipmi/ipmitool/commands/chassis.rb +14 -10
- data/rubyipmi.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
@@ -37,7 +37,7 @@ module Rubyipmi::Ipmitool
|
|
37
37
|
# set boot device from given boot device
|
38
38
|
def bootdevice(device, reboot=false,persistent=false)
|
39
39
|
if config.bootdevices.include?(device)
|
40
|
-
|
40
|
+
bootstatus = config.bootdevice(device, persistent)
|
41
41
|
if reboot and status
|
42
42
|
power.cycle
|
43
43
|
end
|
@@ -45,43 +45,47 @@ module Rubyipmi::Ipmitool
|
|
45
45
|
else
|
46
46
|
raise "Device with name: #{device} is not a valid boot device for host #{options["hostname"]}"
|
47
47
|
end
|
48
|
+
return bootstatus
|
48
49
|
end
|
49
50
|
|
50
51
|
# set boot device to pxe with option to reboot
|
51
52
|
def bootpxe(reboot=false,persistent=false)
|
52
|
-
|
53
|
+
bootstatus = config.bootpxe(persistent)
|
53
54
|
# Only reboot if setting the boot flag was successful
|
54
|
-
if reboot and
|
55
|
+
if reboot and bootstatus
|
55
56
|
power.cycle
|
56
57
|
end
|
58
|
+
return bootstatus
|
57
59
|
end
|
58
60
|
|
59
61
|
# set boot device to disk with option to reboot
|
60
62
|
def bootdisk(reboot=false,persistent=false)
|
61
|
-
config.bootdisk(persistent)
|
63
|
+
bootstatus = config.bootdisk(persistent)
|
62
64
|
# Only reboot if setting the boot flag was successful
|
63
|
-
if reboot and
|
65
|
+
if reboot and bootstatus
|
64
66
|
power.cycle
|
65
67
|
end
|
66
|
-
|
68
|
+
return bootstatus
|
67
69
|
end
|
68
70
|
|
69
71
|
# set boot device to cdrom with option to reboot
|
70
72
|
def bootcdrom(reboot=false,persistent=false)
|
71
|
-
config.bootcdrom(persistent)
|
73
|
+
bootstatus = config.bootcdrom(persistent)
|
72
74
|
# Only reboot if setting the boot flag was successful
|
73
|
-
if reboot and
|
75
|
+
if reboot and bootstatus
|
74
76
|
power.cycle
|
75
77
|
end
|
78
|
+
return bootstatus
|
76
79
|
end
|
77
80
|
|
78
81
|
# boot into bios setup with option to reboot
|
79
82
|
def bootbios(reboot=false,persistent=false)
|
80
|
-
config.bootbios(persistent)
|
83
|
+
bootstatus = config.bootbios(persistent)
|
81
84
|
# Only reboot if setting the boot flag was successful
|
82
|
-
if reboot and
|
85
|
+
if reboot and bootstatus
|
83
86
|
power.cycle
|
84
87
|
end
|
88
|
+
return bootstatus
|
85
89
|
end
|
86
90
|
|
87
91
|
def status
|
data/rubyipmi.gemspec
CHANGED
metadata
CHANGED