Sha256: 75e61bd8f1f17d0fa896ea189e7386c6640aa7d4f712477e5f5f753db0c2bf71

Contents?: true

Size: 573 Bytes

Versions: 5

Compression:

Stored size: 573 Bytes

Contents

Capistrano::Configuration.instance.load do
  _cset :mongodb_logger_asset_env, "RAILS_GROUPS=assets"
  _cset :mongodb_logger_assets_role, [:app]
  _cset :mongodb_logger_assets_dir, "public/assets"

  namespace :mongodb_logger do

    desc <<-DESC
      Run the asset precompilation rake task. 
    DESC
    task :precompile, :roles => mongodb_logger_assets_role, :except => { :no_release => true } do
      run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{mongodb_logger_asset_env} mongodb_logger:assets:compile[#{mongodb_logger_assets_dir}]"
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongodb_logger-0.4.2 lib/mongodb_logger/capistrano.rb
mongodb_logger-0.4.1 lib/mongodb_logger/capistrano.rb
mongodb_logger-0.4.0 lib/mongodb_logger/capistrano.rb
mongodb_logger-0.3.3-jruby lib/mongodb_logger/capistrano.rb
mongodb_logger-0.3.3 lib/mongodb_logger/capistrano.rb