mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-16 06:17:14 -06:00
Hbc is the namespace, Hbc::Cask is the object representing a Cask One step on the path to reducing the surface area of the God-object we've grown over the years. :)
18 lines
297 B
Ruby
18 lines
297 B
Ruby
class Hbc::WithoutSource < Hbc::Cask
|
|
def staged_path
|
|
caskroom_path.children.first
|
|
end
|
|
|
|
def initialize(sourcefile_path=nil)
|
|
@sourcefile_path = sourcefile_path
|
|
@token = sourcefile_path
|
|
end
|
|
|
|
def to_s
|
|
"#{token} (!)"
|
|
end
|
|
|
|
def installed?
|
|
caskroom_path.exist?
|
|
end
|
|
end
|