From f07eafc6d8a95e4e23dd4cb0f82fd66bf1a59a8c Mon Sep 17 00:00:00 2001 From: Gregor Schmidt Date: Tue, 26 Jul 2011 09:19:34 +0200 Subject: [PATCH] Moving tasks to lib folder, removing strange looking task which is probably outdated anyway Sorry, if I got anything wrong here. --- {tasks => lib/tasks}/schema.rake | 0 tasks/gloc_to_i18n.rake | 18 ------------------ 2 files changed, 18 deletions(-) rename {tasks => lib/tasks}/schema.rake (100%) delete mode 100644 tasks/gloc_to_i18n.rake diff --git a/tasks/schema.rake b/lib/tasks/schema.rake similarity index 100% rename from tasks/schema.rake rename to lib/tasks/schema.rake diff --git a/tasks/gloc_to_i18n.rake b/tasks/gloc_to_i18n.rake deleted file mode 100644 index cd0a1bdae5..0000000000 --- a/tasks/gloc_to_i18n.rake +++ /dev/null @@ -1,18 +0,0 @@ -directory = File.dirname File.dirname(__FILE__) -project = File.basename directory -namespace :gloc_to_i18n do - task project do - chdir(directory) do - Dir.glob("lang/*.yml") do |file| - lang = file[5..-5] - target = "config/locales/#{lang}.yml" - mkdir_p File.dirname(target) - File.open(target, "w") do |f| - f << ({lang => YAML.load_file(file)}.to_yaml) - end - end - end - end -end - -task :gloc_to_i18n => "gloc_to_i18n:#{project}" \ No newline at end of file