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 CHANGED
@@ -1 +1 @@
1
- 0.3.1
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
- status = config.bootdevice(device, persistent)
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
- status = config.bootpxe(persistent)
53
+ bootstatus = config.bootpxe(persistent)
53
54
  # Only reboot if setting the boot flag was successful
54
- if reboot and status
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 status
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 status
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 status
85
+ if reboot and bootstatus
83
86
  power.cycle
84
87
  end
88
+ return bootstatus
85
89
  end
86
90
 
87
91
  def status
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rubyipmi"
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
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"]
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Osman