Module: Dobby
- Defined in:
- lib/dobby/options.rb,
lib/dobby/cli.rb,
lib/dobby/dpkg.rb,
lib/dobby/error.rb,
lib/dobby/defect.rb,
lib/dobby/runner.rb,
lib/dobby/package.rb,
lib/dobby/scanner.rb,
lib/dobby/version.rb,
lib/dobby/builtins.rb,
lib/dobby/database.rb,
lib/dobby/severity.rb,
lib/dobby/strategy.rb,
lib/dobby/flag_manager.rb,
lib/dobby/configuration.rb,
lib/dobby/update_response.rb,
lib/dobby/vuln_source/debian.rb,
lib/dobby/vuln_source/ubuntu.rb,
lib/dobby/formatter/colorizable.rb,
lib/dobby/formatter/formatter_set.rb,
lib/dobby/formatter/json_formatter.rb,
lib/dobby/formatter/simple_formatter.rb,
lib/dobby/formatter/abstract_formatter.rb,
lib/dobby/package_source/dpkg_status_file.rb,
lib/dobby/vuln_source/abstract_vuln_source.rb,
lib/dobby/package_source/abstract_package_source.rb
Overview
Adapted from rubocop's Options: Copyright (c) 2012-18 Bozhidar Batsov Additional modifications Copyright (c) 2018 Joe Truba
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Defined Under Namespace
Modules: Builtins, Dpkg, Formatter, OptionsHelp, PackageSource, Severity, Strategy, Version, VulnSource Classes: CLI, Configuration, Database, Defect, Error, FlagManager, Options, Package, Runner, Scanner, UnknownFilterError, UpdateResponse
Class Method Summary collapse
- .config ⇒ Object
- .configure {|config| ... } ⇒ Object
- .logger ⇒ Object
-
.strategies ⇒ Array<Object>
All available Package and Database strategies available to the library.
Class Method Details
.config ⇒ Object
11 12 13 |
# File 'lib/dobby/configuration.rb', line 11 def self.config Configuration.instance end |
.configure {|config| ... } ⇒ Object
15 16 17 |
# File 'lib/dobby/configuration.rb', line 15 def self.configure yield config end |
.logger ⇒ Object
19 20 21 |
# File 'lib/dobby/configuration.rb', line 19 def self.logger config.logger end |
.strategies ⇒ Array<Object>
All available Package and Database strategies available to the library.
7 8 9 |
# File 'lib/dobby/configuration.rb', line 7 def self.strategies @strategies ||= [] end |