Sha256: ede864dfa38f425ccd28302fbe6627a2656eb0830d5e41e97b24456e585f5307

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

namespace :radiant do
  namespace :extensions do
    namespace :<%= file_name %> do
      
      desc "Runs the migration of the <%= extension_name %> extension"
      task :migrate => :environment do
        require 'radiant/extension_migrator'
        if ENV["VERSION"]
          <%= class_name %>.migrator.migrate(ENV["VERSION"].to_i)
        else
          <%= class_name %>.migrator.migrate
        end
      end
    
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-0.6.0 lib/generators/extension/templates/tasks.rake
radiant-0.6.1 lib/generators/extension/templates/tasks.rake
radiant-0.6.2 lib/generators/extension/templates/tasks.rake