# File lib/meez/meez.rb, line 22
  def self.write_template(name, path, cookbook_name, options)
    require 'erb'
    template = File.join(File.dirname(__FILE__), '../../templates', name)
    target = File.join(path, File.basename(name, '.erb'))
    puts "\tCreating #{target} from template"
    content = ERB.new File.new(template).read
    File.open(target, 'w') { |f| f.write(content.result(binding)) }
  end