Sha256: 290d526402c10557204e9a5b302656ee528f98a10455765a17481056c6a5ef67
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
namespace :radiant do namespace :import do namespace :prototype do desc "Import images, javascripts, and styles from prototype" task :assets => [:images, :javascripts, :styles] desc "Import images from prototype" task :images do FileUtils.mkpath "public/images/admin" FileUtils.cp_r "../prototype/images/admin", "public/images" end desc "Import javascripts from prototype" task :javascripts do FileUtils.mkpath "public/javascripts/admin" FileUtils.cp_r "../prototype/javascripts/admin", "public/javascripts" end desc "Import styles from prototype" task :styles do FileUtils.mkpath "public/stylesheets/sass/admin" FileUtils.cp_r "../prototype/stylesheets/admin", "public/stylesheets/sass" filename = 'public/stylesheets/sass/admin/main.sass' content = IO.read(filename) File.open(filename, "w") do |f| f.write(content.gsub(%r{@import _}, '@import admin/_')) end FileUtils.rm_rf "public/stylesheets/admin" end end end end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
radiantcms-couchrest_model-0.1.4 | lib/tasks/prototype.rake |
radiant-0.9.1 | lib/tasks/prototype.rake |
radiant-0.9.0.rc2 | lib/tasks/prototype.rake |
radiant-rc-0.9.0 | lib/tasks/prototype.rake |