nitpick, I would write
```ruby
case host.power.state
when 'running'
   host.power.reset or fail 'resetting host failed'
when 'shutoff'
  host.power.start or fail 'starting host failed'
end