Class: Oxidized::CLI

Inherits:
Object
  • Object
show all
Includes:
Support, SemanticLogger::Loggable
Defined in:
lib/oxidized/cli.rb,
lib/oxidized/cli/support.rb

Defined Under Namespace

Modules: Support

Constant Summary

Constants included from Support

Support::EXPLICIT_ENV_KEYS, Support::ROOT_GEMS, Support::SENSITIVE_NAME_RE

Instance Method Summary collapse

Instance Method Details

#runObject



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/oxidized/cli.rb', line 13

def run
  check_pid
  Process.daemon if @opts[:daemonize]
  write_pid
  begin
    logger.info "Oxidized starting, running as pid #{$PROCESS_ID}"
    Oxidized.new
  rescue StandardError => e
    crash e
    raise
  end
end