diff options
| author | Markus Reiter | 2017-12-01 23:59:04 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-12-02 00:10:55 +0100 |
| commit | 96733bcb2e6836c55bb2e3fea4324c5f38061355 (patch) | |
| tree | 3c3a8a91e34de19a7f5243b25f46ee5425a6705a /Library/Homebrew/compat | |
| parent | 76c64f9bbf54c9f3b6915469f170d1f8c02be208 (diff) | |
| download | brew-96733bcb2e6836c55bb2e3fea4324c5f38061355.tar.bz2 | |
Support environment filtering in Casks.
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/hbc.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/compat/hbc/system_command.rb | 18 |
2 files changed, 0 insertions, 19 deletions
diff --git a/Library/Homebrew/compat/hbc.rb b/Library/Homebrew/compat/hbc.rb index ebf8a9874..608d46e37 100644 --- a/Library/Homebrew/compat/hbc.rb +++ b/Library/Homebrew/compat/hbc.rb @@ -4,7 +4,6 @@ require "compat/hbc/cache" require "compat/hbc/caskroom" require "compat/hbc/cli" require "compat/hbc/dsl" -require "compat/hbc/system_command" module Hbc class << self diff --git a/Library/Homebrew/compat/hbc/system_command.rb b/Library/Homebrew/compat/hbc/system_command.rb deleted file mode 100644 index bb9187db3..000000000 --- a/Library/Homebrew/compat/hbc/system_command.rb +++ /dev/null @@ -1,18 +0,0 @@ -require "shellwords" - -module SystemCommandCompatibilityLayer - def initialize(executable, args: [], **options) - if args.empty? && !File.exist?(executable) - odeprecated "`system_command` with a shell string", "`system_command` with the `args` parameter" - executable, *args = Shellwords.shellsplit(executable) - end - - super(executable, args: args, **options) - end -end - -module Hbc - class SystemCommand - prepend SystemCommandCompatibilityLayer - end -end |
