Class: Backup::Logger::Console::Options
- Inherits:
-
Object
- Object
- Backup::Logger::Console::Options
- Defined in:
- lib/backup/logger/console.rb
Instance Attribute Summary collapse
-
#quiet ⇒ Boolean?
Disables all console output.
Instance Method Summary collapse
- #enabled? ⇒ Boolean
-
#initialize ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize ⇒ Options
Returns a new instance of Options.
19 20 21 |
# File 'lib/backup/logger/console.rb', line 19 def initialize @quiet = false end |
Instance Attribute Details
#quiet ⇒ Boolean?
Disables all console output.
This may also be set on the command line using --quiet
.
If --no-quiet
is used on the command line, console output will be enabled and any setting here will be ignored.
17 18 19 |
# File 'lib/backup/logger/console.rb', line 17 def quiet @quiet end |
Instance Method Details
#enabled? ⇒ Boolean
23 24 25 |
# File 'lib/backup/logger/console.rb', line 23 def enabled? !quiet end |