module Rails::Generators::Actions
def vendor(filename, data=nil, &block)
vendor("foreign.rb", "# Foreign code is fun")
end
"salt = '#{sekrit_salt}'"
sekrit_salt = "#{Time.now}--#{3.years.ago}--#{rand}--"
vendor("sekrit.rb") do
==== Examples
in a block or a data string can be given.
Create a new file in the vendor/ directory. Code can be specified
def vendor(filename, data=nil, &block) log :vendor, filename create_file("vendor/#{filename}", data, :verbose => false, &block) end