homebrew-cask-versions/lib/cask/staged.rb
Roland Walker b837d6c552 remove support for link artifact
* `app`, `suite`, and `artifact no longer implemented as
  synonyms for `link`
* backward-compatible code/comments removed
* creates class `Cask::Artifact::Suite`
* updates `brew cask info` to show specific artifact type
* fixes stray "Generic artifact" messages
2014-10-29 10:53:49 -04:00

18 lines
437 B
Ruby

module Cask::Staged
def info_plist
"#{staged_path}/#{@cask.artifacts[:app].first.first}/Contents/Info.plist"
end
def plist_exec(cmd)
# todo: don't use external interface system_command
system_command("/usr/libexec/PlistBuddy", :args => ["-c", cmd, info_plist])
end
def plist_set(key, value)
plist_exec("Set #{key} #{value}")
end
def bundle_identifier
plist_exec("Print CFBundleIdentifier")
end
end