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

Version Path
fdlcap-0.4.17 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.15 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.14 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.13 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.12 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.11 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.10 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.9 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.7 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.6 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.5 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.4 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.3 lib/fdlcap/recipes/sass.rb
fdlcap-0.4.2 lib/fdlcap/recipes/sass.rb