Class: Proxy::OpenSCAP::ValidateSettings

Inherits:
PluginValidators::Base
  • Object
show all
Defined in:
lib/smart_proxy_openscap/validate_settings.rb

Instance Method Summary collapse

Instance Method Details

#validate!(_settings) ⇒ Object



5
6
7
8
9
# File 'lib/smart_proxy_openscap/validate_settings.rb', line 5

def validate!(_settings)
  _, _, _ = Open3.popen3(['oscap', '--help'])
rescue Errno::ENOENT
  raise FileNotFound.new("'oscap' utility is not available")
end