def place_knife_rb
        chef_path = Strainer.sandbox_path.join('.chef')

        Strainer.ui.debug "Creating directory '#{chef_path}'"
        FileUtils.mkdir_p(chef_path)

        # Build the contents
        contents = <<-EOH
  cache_type 'BasicFile'
  cache_options(:path => "\#{ENV['HOME']}/.chef/checksums")
  cookbook_path '#{Strainer.sandbox_path}'
  EOH

        # Create knife.rb
        Strainer.ui.debug "Writing '#{chef_path}/knife.rb' with content: \n\n#{contents}\n"
        File.open("#{chef_path}/knife.rb", 'w+'){ |f| f.write(contents) }
      end
def place_knife_rb
        chef_path = Strainer.sandbox_path.join('.chef')

        Strainer.ui.debug "Creating directory '#{chef_path}'"
        FileUtils.mkdir_p(chef_path)

        # Build the contents
        contents = <<-EOH
  cache_type 'BasicFile'
  cache_options(:path => "\#{ENV['HOME']}/.chef/checksums")
  cookbook_path '#{Strainer.sandbox_path}'
  EOH

        # Create knife.rb
        Strainer.ui.debug "Writing '#{chef_path}/knife.rb' with content: \n\n#{contents}\n"
        File.open("#{chef_path}/knife.rb", 'w+'){ |f| f.write(contents) }
      end
Create a basic knife.rb file to ensure tests run successfully