Module: Iev::Cli

Defined in:
lib/iev/cli.rb,
lib/iev/cli/ui.rb,
lib/iev/cli/command.rb,
lib/iev/cli/command_helper.rb

Defined Under Namespace

Modules: CommandHelper, Ui Classes: Command

Class Method Summary collapse

Class Method Details

.start(arguments) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/iev/cli.rb', line 8

def self.start(arguments)
  Signal.trap("INT") do
    Ui.info "Signal SIGINT received, quitting!"
    Kernel.exit(1)
  end

  Signal.trap("TERM") do
    Ui.info "Signal SIGTERM received, quitting!"
    Kernel.exit(1)
  end

  Iev::Cli::Command.start(arguments)
end