Class: Epi::Cli::Commands::Status

Inherits:
Epi::Cli::Command show all
Defined in:
lib/epi/cli/commands/status.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



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