homebrew-cask/test/cli
Paul Hinze 3c9423e8c6 naked pkg support + major container refactor
`Cask::Installer` was already much too complex, so I took this
opportunity to throw a `Cask::Container` abstraction around the
extraction part of the package install step.

It goes like this: a Cask's URL points to a Container of some sort. The
containers we currently support are: dmg, zip, tar, and (new) naked.
Naked refers to a raw file that just needs to be copied in place. This
currently just means a pkg file, but in the future it may expand.

A Container knows how to do two things: identify a path as being its
type (`Container.me?`) and extracting the contents of its container to
the proper destination for a Cask (`Container#extract`).

The first Cask we have that supports the naked pkg type is
`heroku-toolbelt`. (Thanks to @sheerun for the Cask definition.)

Other miscellania batched in with this refactor:

 - switched to an explicit require strategy rather than globbing
 - `Cask::Installer` is instantiated now to match its interface with
   other similar collaorators
 - simplified zip and tar identification to shorter strings rather than
   exact matches of full `file -Izb` output
 - `Cask::SystemCommand` gets explicit output redirection options
 - many rogue backticks replaced to properly use `SystemCommand`
 - fixed misnamed test file `link_checker_spec.rb`
 - remove some extraneous `after` clauses in tests; leaning more on
   `test/support/cleanup.rb` to uninstall for us
 - pkg uninstall `:files` gets a `-rf` to support removing dirs

refs #839 and #1043
2013-09-21 21:59:07 -05:00
..
alfred_test.rb naked pkg support + major container refactor 2013-09-21 21:59:07 -05:00
audit_test.rb [#583] Auditing of cask download and checksums 2013-07-07 09:06:02 -05:00
create_test.rb fix overzealous cask already created error 2013-09-09 11:16:26 -05:00
edit_test.rb add bona fide `brew cask create` command 2013-05-11 19:24:17 -05:00
home_test.rb Correct Adium URL to fix failing unit test 2013-07-21 21:24:27 +08:00
info_test.rb whoops; missed a spot 2013-05-11 14:21:01 -05:00
install_test.rb whoops! pass down force argument to installer 2013-05-14 18:08:59 -05:00
linkapps_test.rb naked pkg support + major container refactor 2013-09-21 21:59:07 -05:00
list_test.rb linkapps 2.0 2013-04-07 12:56:55 -05:00
options_test.rb linkapps 2.0 2013-04-07 12:56:55 -05:00
search_test.rb halfway through ripping out mocha 2012-11-25 15:49:09 -06:00
uninstall_test.rb naked pkg support + major container refactor 2013-09-21 21:59:07 -05:00
unlinkapps_test.rb fix issue where linkapps would double symlink 2013-04-13 18:17:20 -05:00