45 Commits

Author SHA1 Message Date
Mike McQuaid
7a38bab333 Fixup all RuboCop warnings. 2017-05-29 18:43:18 +01:00
Markus Reiter
df1864ee43 Add CLI::Options DSL. 2017-05-22 02:51:17 +02:00
Markus Reiter
9e821863d0 Pass along CLI::Binaries. 2017-05-22 02:51:16 +02:00
Markus Reiter
5828eefd01 Remove to_s from some Pathnames. 2017-05-08 13:37:28 +02:00
Mike McQuaid
57db2e539e Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing
changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07 17:28:39 +01:00
Mike McQuaid
ee253e465b Vendor all Homebrew's gems.
Homebrew's actually ended up using a fair few gems. While we want to
avoid Bundler at runtime (and this PR still does that, in fact uses
Bundler even less at runtime than it did before) writing our own version
to use at build-time seems redundant.
2017-05-07 13:52:57 +01:00
commitay
13c33f561e Update binary.rb 2017-04-21 14:52:35 +02:00
commitay
7d9513130b Replace FileUtils.chmod with /bin/chmod for cask binaries. [WIP]
Update binary.rb
Update binary.rb
Update binary.rb
2017-04-21 14:52:35 +02:00
Markus Reiter
c3baf55527 Use sudo if parent path of target is not writable. 2017-04-01 01:57:25 +02:00
Markus Reiter
e1670a9210 Remove sort from each_artifact. 2017-03-15 20:18:56 +01:00
Markus Reiter
2b4c3ee1d7 Default to sudo: false for installer/uninstall :script. 2017-03-13 11:38:37 +01:00
Markus Reiter
621b67e531 Refactor artifacts. 2017-03-10 09:44:50 +01:00
Markus Reiter
b38c52f930 Merge pull request #2289 from reitermarkus/cask-refactor-uninstall
Refactor `pkg`, `uninstall`, and `zap` artifacts.
2017-03-08 20:03:56 +01:00
Markus Reiter
88bc68f3b5 Always chmod +x binary stanzas. 2017-03-08 16:49:28 +01:00
Markus Reiter
2691eb6f65 Refactor Cask uninstall and zap stanza. 2017-03-08 08:16:16 +01:00
Markus Reiter
3b8524d770 Refactor CLI options. 2017-03-07 00:06:34 +01:00
Michael Ledin
5c185eaa43 Expand glob patterns. 2017-02-19 08:02:00 +03:00
Markus Reiter
fcd88b71f5 Allow skipping uninstall script: when --force is passed. 2017-02-16 22:00:01 +01:00
Markus Reiter
486fa0bf19 Fix uninstall also running zap. 2017-02-10 07:49:21 +01:00
Markus Reiter
e1ea7bb721 Refactor Cask Artifacts. 2017-02-05 07:47:54 +01:00
Markus Reiter
ed892243cd Remove :bsexec parameter from SystemCommand. 2016-12-31 18:02:42 +01:00
Markus Reiter
049206bf16 Merge pull request #1464 from reitermarkus/quit-with-launchctl
Use `launchctl` to get running processes by bundle ID.
2016-12-06 15:08:21 +01:00
Markus Reiter
86a80c8a3d Use launchctl to get running processes by bundle ID. 2016-12-05 00:20:29 +01:00
Markus Reiter
e0b93f1537 Also fail if symlinked artifacts already exist. 2016-11-28 14:01:06 +01:00
Markus Reiter
e63efb3fe4 Warn when overwriting an artifact. 2016-11-28 14:01:06 +01:00
Markus Reiter
9a29bd35e6 Fail if cask source already exists. 2016-11-28 13:38:49 +01:00
Markus Reiter
cc7541cbc4 Merge pull request #1535 from umireon/cask-pkg-choice
Cask: Add the choices option to pkg stanza
2016-11-21 10:25:30 +01:00
Kaito Udagawa
df635c8259 cask: compact the code 2016-11-21 04:13:29 +09:00
Kaito Udagawa
0c22cc45e6 cask: Call Tempfile#close(true) with the choices file to ensure it deleted 2016-11-20 14:23:55 +09:00
Kaito Udagawa
2807202103 cask: use Tempfile and some style fixes 2016-11-19 14:52:38 +09:00
Markus Reiter
1834457272 Remove kernel extensions specified in uninstall :kext. 2016-11-19 01:53:26 +01:00
Kaito Udagawa
f4a3bc100b cask: add the choices option to pkg stanza
installer command accepts -applyChoiceChangesXML option to change
customize options on the GUI installer from the commandline.
(`man installer` for more detailed information)

The introduced option `choice` enables the choice changes to be supplied
via pkg stanza without tricks in preflight code.
2016-11-19 04:41:21 +09:00
Eitot
0b176f9cc8 Add dictionary artifact 2016-10-23 17:43:06 +02:00
Markus Reiter
8d15bddedb Auto-correct block delimiters. 2016-10-23 14:44:14 +02:00
Markus Reiter
ad8ae33c1f Fix spacing and indentation. 2016-10-23 14:32:04 +02:00
Markus Reiter
ae7b944238 Align end with beginning of line where if/unless is. 2016-10-23 14:32:03 +02:00
Markus Reiter
8e9eae695a Use () as delimiters for %Q and %q literals. 2016-10-23 14:32:03 +02:00
Markus Reiter
1a0f8b8a02 Use slash-delimited regular expressions. 2016-10-23 14:32:03 +02:00
Markus Reiter
ddf5583208 Refactor Cask’s extensions. 2016-10-04 15:43:58 +02:00
Markus Reiter
75e8b59aad Add Formatter module. 2016-10-01 20:00:49 +02:00
Markus Reiter
6d8ee395fa Refactor Tty. 2016-10-01 20:00:49 +02:00
Markus Reiter
b86c8efb79 Cask: Use nested classes and modules. 2016-09-24 16:00:58 +02:00
Markus Reiter
59212445da Run rubocop —auto-correct. 2016-09-23 15:30:05 +02:00
AnastasiaSulyagina
65579f27dd cask tty removed 2016-08-23 23:44:45 +03:00
AnastasiaSulyagina
e81f4ab7de init 2016-08-19 14:50:14 +03:00