module Rails::Generators::Actions

def lib(filename, data=nil, &block)


lib("foreign.rb", "# Foreign code is fun")

end
"crypted_special_value = '#{rand}--#{Time.now}--#{rand(1337)}--'"
lib("crypto.rb") do

==== Examples

in a block or a data string can be given.
Create a new file in the lib/ directory. Code can be specified
def lib(filename, data=nil, &block)
  log :lib, filename
  create_file("lib/#{filename}", data, :verbose => false, &block)
end