def rakefile(task, options)
      rakefile_content = "task :default => []"
      task_def = case task
        when :no_block then "FoodCritic::Rake::LintTask.new"
        else %Q{
          FoodCritic::Rake::LintTask.new do |t|
            #{"t.name = '#{options[:name]}'" if options[:name]}
            #{"t.files = #{options[:files]}" if options[:files]}
            #{"t.options = #{options[:options]}" if options[:options]}
          end
        }
      end
      if task_def
        rakefile_content = %Q{
          require 'foodcritic'
          task :default => [:#{options[:name] ? options[:name] : 'foodcritic'}]
          #{task_def}
        }
      end
      write_file "cookbooks/example/Rakefile", rakefile_content
    end
def rakefile(task, options)
      rakefile_content = "task :default => []"
      task_def = case task
        when :no_block then "FoodCritic::Rake::LintTask.new"
        else %Q{
          FoodCritic::Rake::LintTask.new do |t|
            #{"t.name = '#{options[:name]}'" if options[:name]}
            #{"t.files = #{options[:files]}" if options[:files]}
            #{"t.options = #{options[:options]}" if options[:options]}
          end
        }
      end
      if task_def
        rakefile_content = %Q{
          require 'foodcritic'
          task :default => [:#{options[:name] ? options[:name] : 'foodcritic'}]
          #{task_def}
        }
      end
      write_file "cookbooks/example/Rakefile", rakefile_content
    end
Create a Rakefile that uses the linter rake task

 @param [Symbol] task Type of task
 @param [Hash] options Task options
 @option options [String] :name Task name
 @option options [String] :files Files to process
 @option options [String] :options The options to set on the rake task