Is there a reason why you didn't use the following?

```ruby
action opts['action'] if opts['action']
```

The default action is create, so it should work even when no action is specified.

(I just realized the default was :create_if_missing, an action that was not even implemented. I just commited a fix, abe4619)