Method: CollinsShell::Ipmi#update
- Defined in:
- lib/collins_shell/ipmi.rb
#update ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/collins_shell/ipmi.rb', line 65 def update call_collins get_collins_client, "update ipmi" do |client| ipmi = client.ipmi_update .tag, :username => .ipmi_username, :password => .ipmi_password, :address => .address, :gateway => .gateway, :netmask => .netmask if ipmi then asset = client.get .tag CollinsShell::Ipmi.print_ipmi asset.ipmi else say_error "update IPMI address" end end end |