aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cask.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cask.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cask.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb
index 975d69d07..8b39bdfd5 100644
--- a/Library/Homebrew/cask/lib/hbc/cask.rb
+++ b/Library/Homebrew/cask/lib/hbc/cask.rb
@@ -84,6 +84,11 @@ module Hbc
!versions.empty?
end
+ def installed_caskfile
+ installed_version = timestamped_versions.last
+ metadata_master_container_path.join(*installed_version, "Casks", "#{token}.rb")
+ end
+
def to_s
@token
end