Sha256: 042a033b2380184f535199dbefdba0c0d7498ae1346b452a468c34fc1416a742
Contents?: true
Size: 962 Bytes
Versions: 1
Compression:
Stored size: 962 Bytes
Contents
namespace :luca do desc "Download the vendor dependencies for a luca app" task :dependencies do base = 'https://raw.github.com/datapimp/luca/master/assets/javascripts/dependencies/' scripts = [ 'underscore-min.js', 'underscore-string.min.js', 'bootstrap.min.js', 'backbone-min.js', 'backbone-query.min.js' ] scripts.each do |script| puts "Downloading #{ script } from #{ base + script }" `wget -q #{ base + script } > #{ Rails.root }/vendor/assets/javascripts/#{ script }` end style_base = "https://raw.github.com/datapimp/luca/master/assets/stylesheets/" stylesheets = [ 'bootstrap.min.css', 'bootstrap-responsive.min.css' ] stylesheets.each do |stylesheet| puts "Downloading #{ stylesheet } from #{ style_base + stylesheet }" `wget -q #{ style_base + stylesheet } > #{ Rails.root }/vendor/assets/dependencies/#{ stylesheet }` end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
luca-0.9.8 | lib/railties/luca/tasks.rake |