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