diff options
| author | Markus Reiter | 2017-04-20 10:48:32 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-04-21 01:28:21 +0200 |
| commit | 1cd125e7e76fa4cc0edf5eb2428d705567cdfef7 (patch) | |
| tree | 88cafd92d493415eeb2dc90b1ceb7f8cf6f37c87 /Library/Homebrew/cask/lib/hbc/utils.rb | |
| parent | 2be7999878702554f1e1b5f4118978e670e6156c (diff) | |
| download | brew-1cd125e7e76fa4cc0edf5eb2428d705567cdfef7.tar.bz2 | |
Refactor cask metadata directory methods.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/utils.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/utils.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index ecb565e8e..2a5acbc88 100644 --- a/Library/Homebrew/cask/lib/hbc/utils.rb +++ b/Library/Homebrew/cask/lib/hbc/utils.rb @@ -115,16 +115,5 @@ module Hbc opoo(poo.join(" ") + "\n" + error_message_with_suggestions) end - - def self.nowstamp_metadata_path(container_path) - @timenow ||= Time.now.gmtime - return unless container_path.respond_to?(:join) - - precision = 3 - timestamp = @timenow.strftime("%Y%m%d%H%M%S") - fraction = format("%.#{precision}f", @timenow.to_f - @timenow.to_i)[1..-1] - timestamp.concat(fraction) - container_path.join(timestamp) - end end end |
