Sha256: cd2d07ba39fed3371ad2d9565e5ee41eff74521fa5c2ed696573f86577212ca1

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

namespace :luca do
  desc "Create a Luca::Project for this app"
  task :project => :environment do |t, args|
    current_folder = Rails.root
    name = ENV['name'] 
    Luca::Project.find_or_create_by_name(name, :path => current_folder.to_s )
  end

  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

4 entries across 4 versions & 1 rubygems

Version Path
luca-0.9.91 lib/railties/luca/tasks.rake
luca-0.9.9 lib/railties/luca/tasks.rake
luca-0.9.899 lib/railties/luca/tasks.rake
luca-0.9.89 lib/railties/luca/tasks.rake