Commit Graph

8 Commits

Author SHA1 Message Date
Josh Hagins 9f57c7ff9a Use keyword arguments in Hbc::Cask constructor 2016-01-06 10:33:03 -05:00
Josh Hagins c1d5a2264e Load casks as instances of Hbc::Cask rather than subclasses 2016-01-06 10:31:59 -05:00
Josh Hagins 3058ed94ab Print error message with suggestions if header parse failed 2016-01-04 17:40:51 -05:00
Josh Hagins 25f7cfee04 Remove DSL versions in docs and scripts
Closes #15912.
2015-12-17 19:57:15 -05:00
Josh Hagins 81b91434dc Do not require a DSL version in cask header
Following up on #15782. Casks can now be created with no DSL version in
the header. For example:

  cask 'no-dsl-version' do
    version :latest
    ...
  end

Casks with a DSL version in the header are still valid, but the DSL
version will be ignored.
2015-12-17 14:56:08 -05:00
Paul Hinze 63d748e14c core: [refactor] separate Hbc::Cask from Hbc
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. :)
2015-02-07 16:37:32 -06:00
Roland Walker b40b0c99e1 strip constants from homebrew-fork global.rb
and corresponding testing_env.rb.
* recast HOMEBREW_BREW_FILE as Hbc.homebrew_executable,
  defined in Hbc::Locations
* recast HOMEBREW_REPOSITORY as Hbc.homebrew_repository
* recast HOMEBREW_PREFIX as Hbc.homebrew_prefix
* remove HOMEBREW_LIBRARY
* recast existing Hbc.tapspath as Hbc.homebrew_tapspath
  to match new methods

fixes #8705
2015-01-07 09:09:53 -05:00
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