more examples
drolfe opened this issue · comments
Daniel commented
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.
Jo² 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.