Skip to content

Commit

Permalink
Make staged_path work in installer stanzas
Browse files Browse the repository at this point in the history
  • Loading branch information
ponychicken committed Jan 13, 2015
1 parent 0ae2edd commit 10c48cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/hbc/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def sha256; self.class.sha256; end

def artifacts; self.class.artifacts; end

def caskroom_path; self.class.caskroom_path; end

def staged_path; self.class.staged_path; end

def caveats; self.class.caveats; end

def accessibility_access; self.class.accessibility_access; end
Expand Down Expand Up @@ -217,6 +221,14 @@ def artifacts
@artifacts ||= Hash.new { |hash, key| hash[key] = Set.new }
end

def caskroom_path
@caskroom_path ||= self.caskroom
end

def staged_path
@staged_path ||= self.caskroom.join(self.name, self.version)
end

def caveats(*string, &block)
@caveats ||= []
if block_given?
Expand Down

0 comments on commit 10c48cb

Please sign in to comment.