Sha256: 2820ca4a21cd3e4942626faf1dc6c74c7317cb0366d1fa0a9e0aa96e2a2ee3b1
Contents?: true
Size: 887 Bytes
Versions: 1
Compression:
Stored size: 887 Bytes
Contents
require 'rest-client' require 'trackman' namespace :trackman do desc "Syncs your assets with the server, this is what gets executed when you deploy to heroku." task :sync => :environment do Trackman::Assets::Asset.sync end desc "Sets up the heroku configs required by Trackman" task :setup, :app do |t, args| Trackman::Utility::Configuration.new(:app => args[:app]).setup end end RestClient.log = STDOUT if Rake::Task.task_defined?("assets:precompile:nondigest") Rake::Task["assets:precompile:nondigest"].enhance do STDOUT.puts "Trackman: autosyncing..." Trackman::Assets::Asset.autosync STDOUT.puts "Trackman: done." end elsif Rake::Task.task_defined?("assets:precompile") Rake::Task["assets:precompile"].enhance do STDOUT.puts "Trackman: autosyncing..." Trackman::Assets::Asset.autosync STDOUT.puts "Trackman: done." end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trackman-0.6.17 | rails_generators/trackman_tasks/templates/trackman.rake |