It looks like you are mixing patterns here. The usual pattern is `r = resource ...` followed by `r.run_action(...)` where you should just use the variable `r`:

```ruby
r = directory 'blah' do
  action :nothing
end
r.run_action(:create)
```

But, it seems you are just doing everything inline which doesn't need a variable definition.