module Capistrano::Messaging::Helpers

Public Instance Methods

application() click to toggle source
# File lib/capistrano/messaging/helpers.rb, line 17
def application
  fetch(:application)
end
branch() click to toggle source
# File lib/capistrano/messaging/helpers.rb, line 13
def branch
  fetch(:branch)
end
deployer() click to toggle source
# File lib/capistrano/messaging/helpers.rb, line 9
def deployer
  Etc.getpwnam(ENV['USER']).gecos
end
elapsed_time() click to toggle source

Return the elapsed running time as a string.

Examples: 21-18:26:30, 15:28:37, 01:14

# File lib/capistrano/messaging/helpers.rb, line 30
def elapsed_time
  `ps -p #{$$} -o etime=`.strip
end
icon_emoji() click to toggle source
# File lib/capistrano/messaging/helpers.rb, line 5
def icon_emoji
  options.fetch(:icon_emoji, nil)
end
stage(default = 'an unknown stage') click to toggle source
# File lib/capistrano/messaging/helpers.rb, line 21
def stage(default = 'an unknown stage')
  fetch(:stage, default)
end