Class: Epi::Cli::Commands::Stop

Inherits:
Epi::Cli::Command show all
Includes:
Epi::Cli::Concerns::Daemon
Defined in:
lib/epi/cli/commands/stop.rb

Instance Attribute Summary

Attributes inherited from Epi::Cli::Command

#args

Instance Method Summary collapse

Methods inherited from Epi::Cli::Command

#initialize, #need_root!, run

Constructor Details

This class inherits a constructor from Epi::Cli::Command

Instance Method Details

#runObject



7
8
9
10
11
# File 'lib/epi/cli/commands/stop.rb', line 7

def run
  need_root!
  need_daemon!
  Epi::Daemon.send(:stop_all) { shutdown }
end