Commit Graph

180 Commits

Author SHA1 Message Date
Roland Walker f223821038 add feedback when downloading a URI source
otherwise the user sees the curl progress bar w/o explanation
2014-01-04 07:43:29 -05:00
Paul Hinze e46b89c908 Merge pull request #2081 from leoj3n/services-support
[WIP] services support
2013-12-15 15:26:44 -06:00
Paul Hinze 9c99f282e1 Merge pull request #2022 from rolandwalker/kext_check_unload
check if kext is present before attempting unload
2013-12-15 14:57:12 -06:00
Paul Hinze 36b0d166df make method_missing message much more explicit 2013-12-15 14:16:22 -06:00
Paul Hinze ac50e9d65b Merge pull request #2107 from phinze/headers-integration
Headers integration
2013-12-15 11:27:25 -08:00
Paul Hinze f6f507b289 some refactoring around the new download strategy
- move the interface from top-level methods to hash arguments of URL to
   keep the cask DSL as skinny as possible
 - promote the Cask::Headers object up to a Cask::URL object that
   encapsulates all infornation about the URL
 - pull all knowledge about curl arguments into the DownloadStrategy,
   leaving URL to act as a value object to be queried for details
 - test at the DownloadStrategy level; setting up expected curl args
   and example casks
2013-12-15 13:18:47 -06:00
Paul Hinze 24a53c4af7 Merge pull request #1944 from jonahoffline/add_headers_download_strategy
Add DownloadStrategy with custom :headers support
2013-12-14 09:13:58 -06:00
Paul Hinze fd82e97fa1 Merge pull request #2085 from pstadler/master
Handle CaskAlreadyInstalledError more graceful
2013-12-14 07:10:22 -08:00
Paul Hinze 6fa34a8e3e Merge pull request #2051 from rolandwalker/uninstall_flags
flag handling consistent btw install/uninstall
2013-12-14 07:07:45 -08:00
Paul Hinze 0c6e97b8fd use absolute paths for all commands
closes #2029
2013-12-14 08:48:40 -06:00
Paul Hinze 4bfc09ec02 Merge pull request #2066 from halo/master
Configurable Caskroom location, see #475
2013-12-14 06:00:31 -08:00
Patrick Stadler cb11080468 CaskAlreadyInstalledError exits with 0 2013-12-14 14:10:57 +01:00
future e7d98677fe Added inline comment on option parser so that people won't forget about the documentation 2013-12-14 10:13:06 +01:00
Joel Kuzmarski 7432affc59 services support 2013-12-13 18:13:19 -06:00
Roland Walker 9b4805be4e Merge pull request #2026 from rolandwalker/safer_quit_uninst
safer test for currently running app
2013-12-13 13:54:38 -08:00
Paul Hinze 8870f7c1fc Merge pull request #2008 from kevinSuttle/colorpickers 2013-12-13 10:40:36 -06:00
Paul Hinze 0a0c4a2d8a remove use of caller 2013-12-13 08:56:59 -06:00
Jonah Ruiz c92890ecc9 Refactor similar method structure in dirs and files into one for re-use.
By using the name of the method calling fs_command we remove duplication
2013-12-13 04:14:54 -04:00
Kevin Suttle 6dff4a35db Add support for colorpicker type 2013-12-12 22:59:58 -05:00
Jonah Ruiz 06be4b0d8e Add DownloadStrategy and Cask::Headers for custom :headers support
accepts a :user_agent argument and/or multiple :cookies
  headers :user_agent => 'Netscape/1.0', :cookies => { :cookey => "r00t" }

Also adds a standalone :fake_user_agent for a default UserAgent (Chrome)
  fake_user_agent
References #1175, #958
2013-12-12 21:29:12 -04:00
future af408269cf Make caskroom configurable via command line argument 2013-12-12 12:31:57 +01:00
Roland Walker ce4b83984c flag handling consistent btw install/uninstall
This makes uninstall process flag arguments in the same manner
as install. Any argument with a leading dash is assumed to be a
flag, not a Cask.  Argument processing still needs work, unknown
flags and spelling errors are silently accepted.
2013-12-11 17:15:33 -05:00
Roland Walker be7cc838a7 safer test for currently running app
The previous version could fail if the specified bundle was not installed.
Here we tell "System Events" until determining it is safe to do otherwise.
2013-12-09 22:23:27 -05:00
Roland Walker 07b9eea19b refine & document order of uninstall keys
Proposed order - :script, :launchctl, :quit, :kext, :pkgutil, :files.  Quit
a process before attempting to unload an assocated kext, unload kext before
attempting to delete the associated file, etc.  Arguably :script fits
loically with :files near the end of the list.  However, we also have
:after_uninstall which implicitly fires immediately after :files.
Therefore, running :script early provides greater functionality.
2013-12-09 21:34:30 -05:00
Fernando Paredes 150c5bcf6f Merge pull request #2019 from rolandwalker/validate_uninstall_keys
validate keys given to :uninstall
2013-12-09 17:25:27 -08:00
Roland Walker bd9d680b03 check if kext is present before attempting unload
this is intended to address #1941
2013-12-09 19:37:07 -05:00
Roland Walker cf56f10555 add :quit key to uninstall check 2013-12-09 14:17:03 -05:00
Roland Walker dda6573d47 validate keys given to :uninstall
this should also be part of audit
2013-12-09 10:39:34 -05:00
Roland Walker 6d05664532 add :quit key to uninstall
The applescript is divided into two commands to keep from transiently
invoking the application in the case where it is not currently running.
2013-12-09 09:23:53 -05:00
Fernando Paredes 72ad901543 Merge pull request #2013 from NanoXD/WidgetSupport
Widget Support
2013-12-08 18:20:48 -08:00
Fernando Paredes 26154a0fb3 Merge pull request #2012 from phinze/verbose-pkg-install
support --verbose flag for pkg installer
2013-12-08 18:19:02 -08:00
Fernando Paredes d9c77c65cb Add support for installing Widgets 2013-12-08 09:28:56 -08:00
Paul Hinze d5b4c9d044 support --verbose flag for pkg installer
refs #1976
2013-12-08 10:36:17 -06:00
Roland Walker 837f4932ec Allow naked OTF and TTF files, follow-up on #1860
This should not be needed for .qlgenerator or .prefPane, because
(like .app) those are always directories/bundles and therefore must
be transported in some type of container.
2013-12-06 16:11:33 -05:00
Paul Hinze 79aa1b7275 allow casks to support arbitrary blocks
this allows us to experiment with behavior that we may not want to
promote to an official feature just yet.

i'm thinking about stuff like #544, and other things i can't foresee

we'll have to be careful to not let this get out of hand, but i think
it could be helpful for cask authors to be able to try and problem solve
locally.
2013-12-05 21:02:59 -06:00
Paul Hinze f75c47e32f Merge pull request #1948 from phinze/non-ruby-backed-casks
support non-ruby-backed casks
2013-12-05 18:28:31 -08:00
Paul Hinze 5dba177bf1 Merge pull request #1860 from rolandwalker/fonts
add support for installing fonts
2013-12-05 18:27:02 -08:00
phinze 10db2d5d3c support non-ruby-backed casks
- brew cask list now displays casks without backing ruby files
- casks without a source are displayed as "caskname (!)"
- these casks can be uninstalled, with the caveat that it only removes
  their files from the caskroom (doesn't run pkg uninstall or anything,
  since there's no ruby file to define what to do)
2013-12-05 20:10:19 -06:00
Peter Jaros fb1e0ac245 Create qlplugindir during init. 2013-11-28 19:45:49 -05:00
Roland Walker 5da6e642bf add support for installing fonts 2013-11-26 08:38:43 -05:00
Fernando Paredes 26de3172a9 Merge pull request #1733 from lgarron/qlplugin
QuickLook Plugin Support
2013-11-25 16:00:10 -08:00
Reto Kaiser 70656ffd20 Use HOMEBREW_REPOSITORY instead of HOMEBREW_PREFIX to derive tapspath 2013-11-17 02:16:37 +01:00
phinze ca0dbf84a6 pull cask loading out into classes
- introduce Cask::Source to encapsulate different types of loading
   behind a consistent interface
 - mostly this is method-level reorg, kept refactoring of the internals
   of these methods to a minimum for this pass
 - this is preparatory cleanup for adding the ability to represent a
   cask without a backing ruby file
2013-11-16 13:40:51 -06:00
Lucas Garron ee30f839d2 QuickLook plugin support. 2013-11-14 20:26:07 -08:00
Shane Watson 0627d3a909 Use exit codes 2013-11-10 13:30:11 -08:00
phinze 1ba71a3554 remove empty app dirs from caskroom on uninstall
previously an install + uninstall would leave around an empty dir with
the app's name. now we clean that up.

refs #1461
2013-11-10 14:48:16 -06:00
Shane Watson 8ab01bc255 Guard against unspecified casks in CLI 2013-11-10 13:44:10 -06:00
Paul Hinze 0b09339fab Merge pull request #1537 from linc01n/info_with_caveats
Add caveats to info like homebrew
2013-11-10 08:52:27 -08:00
Shane Watson cf1b51d8f4 Change "while !" to until 2013-11-09 09:17:20 -08:00
Lincoln Lee 22ee53b1d3 Add caveats to info like homebrew 2013-11-09 18:45:50 +08:00