Commit graph

8 commits

Author SHA1 Message Date
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
8a81cb54a1 Use bold terminal escapes instead of white
Let the terminal decide how to display bold.  Fixes #9349.
The issue arose when integrating Homebrew's `Tty` class.
Homebrew's `Tty.white` actually emits escapes for bold.

Fixing `Tty.white` to do what the method name says caused
loss of visibility on light backgrounds.
2015-02-07 12:16:45 -05:00
Roland Walker
e1ad5a270f expand tilde in $PATH for internal which method
restores Homebrew's behavior with regard to external commands
fixes #8889
2015-01-15 10:43:06 -05:00
Roland Walker
dbfe0db2de apply which to default editor values
this was lost during integration from Homebrew
2015-01-14 07:37:45 -05:00
ndr
8fa1f4db24 Split ENV variables on whitespace in exec_editor 2015-01-09 22:31:59 +00:00
Roland Walker
4b4e8cf706 incorporate homebrew-fork ignore_interrupts
utility method
2015-01-07 09:51:39 -05:00
Roland Walker
774eae75a8 replace homebrew-fork method exec_editor
remove which_editor
remove safe_exec
2015-01-03 07:59:51 -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
Renamed from lib/cask/utils.rb (Browse further)