Class: Harmoniser::CLI
- Inherits:
-
Object
- Object
- Harmoniser::CLI
- Includes:
- Singleton
- Defined in:
- lib/harmoniser/cli.rb
Defined Under Namespace
Classes: SigUsr1
Constant Summary collapse
- SIGNAL_HANDLERS =
{ "INT" => lambda { |cli, signal| raise Interrupt }, "TERM" => lambda { |cli, signal| raise Interrupt }, "USR1" => lambda { |cli, signal| raise SigUsr1 } }
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
20 21 22 23 |
# File 'lib/harmoniser/cli.rb', line 20 def initialize @configuration = Harmoniser.default_configuration @logger = Harmoniser.logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
18 19 20 |
# File 'lib/harmoniser/cli.rb', line 18 def logger @logger end |