I have a Command
table which look like this in rails console
Command(id: integer, created_at: datetime, updated_at: datetime, timeout:
integer, name: string, command: text, action: string, reboot_action:
string, num_retries: integer, partnum: string, path: string,
firmware: string)
The last command in the table look like this:
<Command id: 1, created_at: "2017-02-09 17:44:10",
updated_at: "2017-02-09 17:44:10", timeout: 60,
name: "test", command: "home/app",
action: "up">
So how to pass the command object to the method, So that i will have the required information about what command to run and how to handle a failure.