Sha256: 7245996e5624b61fe1018c5ea7294f37dfc54b1e8a986d1e55e355a75487663d

Contents?: true

Size: 991 Bytes

Versions: 97

Compression:

Stored size: 991 Bytes

Contents

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

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
trusty-cms-5.3.9 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3.8 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3.7 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3.6 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3.5 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3.4 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3.3 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3.2 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3.1 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.3 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.2.3 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.2.2 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.2.1 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.2.0 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.1.0 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.0.9 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.0.7 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.0.6 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.0.5 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake
trusty-cms-5.0.4 vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake