We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5180449 commit 45c6d78Copy full SHA for 45c6d78
2 files changed
lib/proxy/archive_extract.rb
@@ -29,5 +29,9 @@ def start
29
end
30
31
32
+
33
+ def self.has_capability?
34
+ which(SHELL_COMMAND) ? 'extraction' : nil
35
+ end
36
37
modules/tftp/tftp_plugin.rb
@@ -11,7 +11,7 @@ class Plugin < ::Proxy::Plugin
11
validate :verify_server_cert, boolean: true
12
13
# Expose automatic iso handling capability
14
- capability -> { which(Proxy::ArchiveExtract::SHELL_COMMAND) ? 'extraction' : nil }
+ capability -> { Proxy::ArchiveExtract.has_capability? }
15
16
expose_setting :tftp_servername
17
0 commit comments