Commit Graph

11 Commits

Author SHA1 Message Date
Roland Walker 239396f8b7 new-style header in heroku-toolbelt 2014-11-13 12:35:27 -05:00
Roland Walker d37f31169b add zap stanza in heroku-toolbelt 2014-10-22 06:16:41 -04:00
Roland Walker a348defe33 add license stanza to heroku-toolbelt 2014-10-01 11:42:48 -04:00
Roland Walker 518b37805b cvt to :delete heroku-toolbelt 2014-09-18 07:57:56 -04:00
Roland Walker 073712d2d4 :latest as symbol in heroku-toolbelt 2014-09-17 07:42:47 -04:00
Roland Walker 64390488d2 heroku-toolbelt.rb 2014-09-10 11:37:02 -04:00
ndr 391fe4b547 Reformat heroku-toolbelt.rb according to readability conventions 2014-06-27 02:01:17 +02:00
Vítor Galvão d115e8598e Alignment changes to heroku-toolbelt 2014-05-20 02:33:02 +01:00
Roland Walker c8cd897435 mass convert Casks to sha256 :no_check 2014-05-08 08:51:31 -04:00
Roland Walker af577ebd15 add files_in_usr_local caveat to several Casks 2014-02-21 10:44:44 -05:00
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