I am trying to create a resource that writes all attributes to a file.
gist provider
gist resource
I get the following error:
Error executing action runon resource 'ruby_block [dump_node_attributes]' '
NoMethodError
private method `open' called for Chef::Provider::File:Class
Cookbook Trace:
/Users/odedpriva/.chef/local-mode-cache/cache/cookbooks/test-helper/providers/create.rb:24:in `block (3 levels) in class_from_file'
Any idea what I'm doing wrong?
source
share