Sha256: c1eb271c3ff7ce52397b0c46703c72ef35b14b3947e32c9b97a3ea629641de22
Contents?: true
Size: 768 Bytes
Versions: 4
Compression:
Stored size: 768 Bytes
Contents
module Slackistrano module Messaging module Helpers def icon_url 'https://raw.githubusercontent.com/phallstrom/slackistrano/master/images/slackistrano.png' end def icon_emoji nil end def username 'Slackistrano' end def deployer ENV['USER'] || ENV['USERNAME'] end def branch fetch(:branch) end def application fetch(:application) end def stage(default = 'an unknown stage') fetch(:stage, default) end # # Return the elapsed running time as a string. # # Examples: 21-18:26:30, 15:28:37, 01:14 # def elapsed_time `ps -p #{$$} -o etime=`.strip end end end end
Version data entries
4 entries across 4 versions & 1 rubygems