Module: Openvas
- Extended by:
- Openvas
- Included in:
- Openvas
- Defined in:
- lib/openvas.rb,
lib/openvas/auth.rb,
lib/openvas/scan.rb,
lib/openvas/client.rb,
lib/openvas/config.rb,
lib/openvas/result.rb,
lib/openvas/reports.rb,
lib/openvas/version.rb
Defined Under Namespace
Modules: Config Classes: Auth, Client, Report, Reports, Result, Scan
Constant Summary collapse
- VERSION =
'1.0.4'
Instance Method Summary collapse
- #configure ⇒ Object (also: #config)
Instance Method Details
#configure ⇒ Object Also known as: config
16 17 18 19 20 21 22 23 24 |
# File 'lib/openvas.rb', line 16 def configure block_given? ? yield(Config) : Config %w[url username password].each do |key| next unless Openvas::Config.instance_variable_get("@#{key}").nil? raise Openvas::Config::RequiredOptionMissing, "Configuration parameter missing: '#{key}'. " \ 'Please add it to the Openvas.configure block' end end |