Class: Chef::Resource::CookbookFile
- Inherits:
-
File
- Object
- Chef::Resource
- File
- Chef::Resource::CookbookFile
- Defined in:
- lib/chef/handler/resources/cookbook_file.rb
Instance Method Summary collapse
Instance Method Details
#to_serverspec ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/chef/handler/resources/cookbook_file.rb', line 4 def to_serverspec "\n describe file('\#{path}') do\n it { should be_file }\n it { should be_mode '\#{mode}' }\n it { should be_owned_by '\#{owner}' }\n it { should be_grouped_into '\#{group}' }\n end\n" end |