lib/mongodb_logger/capistrano.rb in mongodb_logger-0.5.2 vs lib/mongodb_logger/capistrano.rb in mongodb_logger-0.6.0

- old
+ new

@@ -1,24 +1,23 @@ 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" - + _cset :mongodb_logger_assets_role, [:app] _cset :mongodb_logger_db_role, [:app] 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 + 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 desc <<-DESC Run collection migrate rake task. DESC - task :migrate, :roles => mongodb_logger_db_role, :except => { :no_release => true } do + task :migrate, roles: mongodb_logger_db_role, except: { no_release: true } do run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} mongodb_logger:migrate" end end end \ No newline at end of file