Sha256: b4ac5a2f25060cb3af476d90383e78153f59736ef7d727381f0319a983a90b40

Contents?: true

Size: 557 Bytes

Versions: 78

Compression:

Stored size: 557 Bytes

Contents

require File.join(File.dirname(__FILE__), "ey_logger")

# These tasks are setup to use with the logger as post commit hooks.
Capistrano::Configuration.instance(:must_exist).load do
  namespace :ey_logger do
    task :upload_log_to_slice, :except => { :no_release => true} do
      logger = Capistrano::EYLogger
      run "mkdir -p #{shared_path}/deploy_logs"
      put File.open(logger.log_file_path).read, "#{shared_path}/deploy_logs/#{logger.remote_log_file_name}"
    end
  end
end

Capistrano::EYLogger.post_process_hook("ey_logger:upload_log_to_slice")

Version data entries

78 entries across 78 versions & 8 rubygems

Version Path
engineyard-eycap-0.3.10 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.11 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.3 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.4 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.5 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.6.1 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.6 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.7 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.8 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.3.9 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.0 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.1 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.10 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.11 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.12 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.14 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.15 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.2 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.3 lib/eycap/lib/ey_logger_hooks.rb
engineyard-eycap-0.4.4 lib/eycap/lib/ey_logger_hooks.rb