lib/homebrew_automation/bottle.rb
def build!(&block)
      raise StandardError, "Bottle#build! expects a block" unless block
      call_brew! do
        json_str = @bottle_finder.read_json!
        (minus_minus, filename) = parse_for_tarball_path(json_str)
        contents = @bottle_finder.read_tarball! minus_minus
        block.call(filename, contents)
      end
    end
# Build the bottle and get a binary tarball suitable for upload to Bintray
#
# Unless you've already run +brew install --build-bottle+ on that Formula
# on your system before, the returned effect would take ages to run (looking
# at about 30-60 minutes).
#
# @yieldparam filename [String] A filename to tell Bintray which Homebrew can
#   recognise
# @yieldparam contents [String] The data of the binary Bottle tarball, as if
#   read via {File#read}
# @return [NilClass]
Build the bottle and get a binary tarball suitable for upload to Bintray
Unless you've already run +brew install --build-bottle+ on that Formula
on your system before, the returned effect would take ages to run (looking
at about 30-60 minutes).
Build the bottle and get a binary tarball suitable for upload to Bintray Unless you ' ve already run + brew install -- build - bottle + on that Formula on your system before the returned effect would take ages to run ( looking at about 30 - 60 minutes ) .
def build!(&block)
      raise StandardError, "Bottle#build! expects a block" unless block
      call_brew! do
        json_str = @bottle_finder.read_json!
        (minus_minus, filename) = parse_for_tarball_path(json_str)
        contents = @bottle_finder.read_tarball! minus_minus
        block.call(filename, contents)
      end
    end
def build! ( & block ) raise StandardError , "Bottle#build! expects a block" unless block call_brew! do json_str = @bottle_finder . read_json! ( minus_minus , filename ) = parse_for_tarball_path ( json_str ) contents = @bottle_finder . read_tarball! minus_minus block . call ( filename , contents ) end end
Build the bottle and get a binary tarball suitable for upload to Bintray
Unless you've already run +brew install --build-bottle+ on that Formula
on your system before, the returned effect would take ages to run (looking
at about 30-60 minutes).
Build the bottle and get a binary tarball suitable for upload to Bintray Unless you ' ve already run + brew install -- build - bottle + on that Formula on your system before the returned effect would take ages to run ( looking at about 30 - 60 minutes ) .
None
NilClass
block
filename
A filename to tell Bintray which Homebrew can recognise
A filename to tell Bintray which Homebrew can recognise
contents
The data of the binary Bottle tarball, as if read via {File#read}
The data of the binary Bottle tarball as if read via { File#read }