Created
May 9, 2014 17:04
-
-
Save cmilfont/9491685ee8e58105aedf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :export do | |
desc "Gerando SEED" | |
task :gerar => :environment do | |
File.open("/Users/cmilfont/projetos/bookmaker/lib/tasks/import.rake", "w:UTF-8") do |file| | |
file.write "#encoding: UTF-8 \n" | |
file.write "namespace :import do \n" | |
file.write " task :all => :environment do \n" | |
gerar_corpo | |
file.write " end \n" | |
file.write "end" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment