josqu4red / ilorb

HP ILO Ruby interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

more examples

drolfe opened this issue · comments

Hi Sorry to be a pain, but I'm only getting started with ruby and would love some more examples of passing in data to the more complex definitions such as below for example

write_cmd :server_auto_pwr do
attributes :value

write_cmd :set_persistent_boot do
elements :device => [ :value ]

write_cmd :set_pwreg do
elements :pwralert => :type, :pwralert_settings => [:threshold, :duration]

I plan to make a very basic Sinatra app to admin our servers.

commented

That's probably way too late, but there were some examples in tests for set_persistent_boot and set_pwreg, hope you figured it out. I just added one for server_auto_pwr.
Sorry for the delay.