lib/cap_gun/presenter.rb
# Gives you a prettier date/time for output from the standard Capistrano timestamped release directory.
# This assumes Capistrano uses UTC for its date/timestamped directories, and converts to the local
# machine timezone.
Gives you a prettier date/time for output from the standard Capistrano timestamped release directory.
This assumes Capistrano uses UTC for its date/timestamped directories, and converts to the local
machine timezone.
Gives you a prettier date / time for output from the standard Capistrano timestamped release directory . This assumes Capistrano uses UTC for its date / timestamped directories and converts to the local machine timezone .
def humanize_release_time(path)
      return unless path
      match = path.match(/(\d+)$/)
      return unless match
      local = convert_from_utc(match[1])
      local.strftime("%B #{local.day.ordinalize}, %Y %l:%M %p #{local_timezone}").gsub(/\s+/, ' ').strip
    end
def humanize_release_time ( path ) return unless path match = path . match ( / ( \d +)$ / ) return unless match local = convert_from_utc ( match [ 1 ] ) local . strftime ( "%B #{local.day.ordinalize}, %Y %l:%M %p #{local_timezone}" ) . gsub ( / \s + / , ' ' ) . strip end
Gives you a prettier date/time for output from the standard Capistrano timestamped release directory.
Gives you a prettier date / time for output from the standard Capistrano timestamped release directory .
path
<not_specific>