Sha256: be93e39e31a8fef75ee00ed01c18eb43f739c6b8d80c36ffad42535960a22d03
Contents?: true
Size: 550 Bytes
Versions: 3
Compression:
Stored size: 550 Bytes
Contents
module Capistrano::Dingtalk::Messaging module Helpers def username 'cap-dingtalk-bot' 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 #{$PROCESS_ID} -o etime=`.strip end end end
Version data entries
3 entries across 3 versions & 1 rubygems