Sha256: 2e8d0d421dffbe721a508039830d2f42bc93b0b98616496d46db8119c2e43b3c
Contents?: true
Size: 596 Bytes
Versions: 23
Compression:
Stored size: 596 Bytes
Contents
# desc "Explaining what the task does" # task :awesome_translations do # # Task goes here # end namespace :awesome_translations do task "install" => :environment do yml_root = "#{Rails.root}/config/locales/awesome_translations" dirs = [ yml_root, "#{yml_root}/helpers", "#{yml_root}/models", "#{yml_root}/views", "#{yml_root}/controllers" ] dirs.each do |dir| unless File.exists?(dir) puts "[AwesomeTranslations] Creating dir: #{dir}" Dir.mkdir(dir) end end end task "update" => :environment do end end
Version data entries
23 entries across 23 versions & 1 rubygems