Class: Epi::Cli::Commands::Status
- Inherits:
-
Epi::Cli::Command
- Object
- Epi::Cli::Command
- Epi::Cli::Commands::Status
- Defined in:
- lib/epi/cli/commands/status.rb
Instance Attribute Summary
Attributes inherited from Epi::Cli::Command
Instance Method Summary collapse
Methods inherited from Epi::Cli::Command
Constructor Details
This class inherits a constructor from Epi::Cli::Command
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/epi/cli/commands/status.rb', line 6 def run if Epi::Daemon.running? Epi::Daemon.send :status else Epi::Daemon.send(:start) { Epi::Daemon.send :status } end end |