homebrew-cask-versions/lib/hbc/without_source.rb
Roland Walker 202d6019f8 Move all code under an Hbc:: namespace
* convert existing Cask:: namespace to Hbc::
* move Homebrew-fork code under Hbc::
* move freestanding classes such as Tty and TopologicalHash under Hbc::
* recast HOMEBREW_CASK_ constants as HBC_
* modify our Homebrew Formula for backward compatibility
* devscripts and dev docs
2015-01-02 07:27:03 -05:00

18 lines
291 B
Ruby

class Hbc::WithoutSource < Hbc
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