Module: ConfCtl::SystemCommand

Defined in:
lib/confctl/system_command.rb

Class Method Summary collapse

Class Method Details

.new(logger: nil) ⇒ TTY::Command

Parameters:

  • logger (#<<) (defaults to: nil)

Returns:

  • (TTY::Command)


7
8
9
# File 'lib/confctl/system_command.rb', line 7

def self.new(logger: nil)
  TTY::Command.new(output: logger || Logger.instance, color: false)
end