class Chef::Resource::CookbookFile

Public Instance Methods

to_serverspec() click to toggle source
# File lib/chef/handler/resources/cookbook_file.rb, line 4
      def to_serverspec
        <<-EOT

  describe file('#{path}') do
    it { should be_file }
    it { should be_mode '#{mode}' }
    it { should be_owned_by '#{owner}' }
    it { should be_grouped_into '#{group}' }
  end
EOT
      end