Class: Backup::Logger::Console::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/backup/logger/console.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

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

#quietBoolean?

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.

Parameters:

  • (Boolean, nil)

Returns:

  • (Boolean, nil)

    Default: false



17
18
19
# File 'lib/backup/logger/console.rb', line 17

def quiet
  @quiet
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/backup/logger/console.rb', line 23

def enabled?
  !quiet
end