Commit Graph

19 Commits

Author SHA1 Message Date
Josh Hagins 312ae841f1 Use Ruby 1.9 hash syntax in casks where possible 2016-01-17 21:57:28 -05:00
Josh Hagins d619d870fa heroku-toolbelt.rb: RuboCop (master), RuboCop-cask (master) auto-correct 2016-01-03 15:28:49 -05:00
Josh Hagins feba4ec740 Remove DSL versions from all casks 2015-12-17 20:15:28 -05:00
Cyril Thomas 6a8c7cf94a Removing `foreman` installed by heroku-toolbelt's setup. 2015-01-16 20:06:23 +01:00
Vítor Galvão dfdf47ab0b heroku-toolbelt.rb: added name 2015-01-09 20:30:54 +00:00
Vítor Galvão ee77b1a39f heroku-toolbelt.rb: change ':unknown' license comment 2014-12-20 13:46:18 +00:00
Roland Walker d9c67817a8 license todo comment in heroku-toolbelt 2014-12-10 08:49:37 -05:00
Roland Walker 6d05f240f6 blank before uninstall in heroku-toolbelt 2014-11-22 09:12:40 -05:00
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