Sha256: bd92c02197c277fb9e0588744a2172a2753ec4f66ce5bdb867e1b50ddaebac74
Contents?: true
Size: 655 Bytes
Versions: 14
Compression:
Stored size: 655 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do define_recipe :sass do # # Tasks # namespace :sass do desc 'Updates the stylesheets generated by Sass' task :update, :roles => :app, :except => { :no_release => true } do invoke_command "cd #{latest_release}; RAILS_ENV=#{rails_env} rake sass:update" end end # # Callbacks # # Generate all the stylesheets manually (from their Sass templates) before each restart. after 'deploy:finalize_update' do look_for_stylesheet_changes before('deploy:restart', 'sass:update') if stylesheets_changed? end end end
Version data entries
14 entries across 14 versions & 1 rubygems