diff options
| author | Markus Reiter | 2016-10-04 15:24:58 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-04 15:43:58 +0200 |
| commit | ddf5583208e473ef00447834a3a712411e61e190 (patch) | |
| tree | ffe336ab8f53de98d4e06685a2c21452976b2605 /Library/Homebrew/cask/lib/hbc/artifact/pkg.rb | |
| parent | cafe1497808ef1ddb002061665ad606aa2340d10 (diff) | |
| download | brew-ddf5583208e473ef00447834a3a712411e61e190.tar.bz2 | |
Refactor Cask’s extensions.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/artifact/pkg.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/artifact/pkg.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb b/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb index e590a9082..372740631 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb @@ -1,5 +1,7 @@ require "hbc/artifact/base" +require "hbc/utils/hash_validator" + module Hbc module Artifact class Pkg < Base @@ -14,7 +16,7 @@ module Hbc @pkg_install_opts = pkg_description.shift begin if @pkg_install_opts.respond_to?(:keys) - @pkg_install_opts.assert_valid_keys(:allow_untrusted) + @pkg_install_opts.extend(HashValidator).assert_valid_keys(:allow_untrusted) elsif @pkg_install_opts raise end |
