Sha256: 5c8ac27bbd01a41c6c14cb67e2855f43228817d3e38f235bf6ac807f78082839

Contents?: true

Size: 986 Bytes

Versions: 7

Compression:

Stored size: 986 Bytes

Contents

namespace :radiant do
  namespace :extensions do
    namespace :nl do
      
      desc "Runs the migration of the I18n Nl extension"
      task :migrate => :environment do
        require 'radiant/extension_migrator'
        if ENV["VERSION"]
          I18nNlExtension.migrator.migrate(ENV["VERSION"].to_i)
        else
          I18nNlExtension.migrator.migrate
        end
      end
      
      desc "Copies public assets of the I18n Nl to the instance public/ directory."
      task :update => :environment do
        is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
        puts "Copying assets from I18nNlExtension"
        Dir[I18nNlExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
          path = file.sub(I18nNlExtension.root, '')
          directory = File.dirname(path)
          mkdir_p RAILS_ROOT + directory, :verbose => false
          cp file, RAILS_ROOT + path, :verbose => false
        end
      end  
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
radiant-dutch_language_pack-extension-1.0.1 lib/tasks/i18n_nl_extension_tasks.rake
radiant-dutch_language_pack-extension-1.0.0 lib/tasks/i18n_nl_extension_tasks.rake
radiant-1.0.0.rc2 vendor/extensions/dutch_language_pack/lib/tasks/i18n_nl_extension_tasks.rake
radiant-1.0.0.rc1 vendor/extensions/dutch_language_pack/lib/tasks/i18n_nl_extension_tasks.rake
radiantcms-couchrest_model-0.1.4 vendor/extensions/dutch_language_pack/lib/tasks/i18n_nl_extension_tasks.rake
radiant-0.9.1 vendor/extensions/dutch_language_pack/lib/tasks/i18n_nl_extension_tasks.rake
radiant-0.9.0.rc2 vendor/extensions/dutch_language_pack/lib/tasks/i18n_nl_extension_tasks.rake