class PhusionPassenger::Config::SystemMetricsCommand

Public Instance Methods

run() click to toggle source
# File src/ruby_supportlib/phusion_passenger/config/system_metrics_command.rb, line 31
def run
  agent_exe = PhusionPassenger.find_support_binary(AGENT_EXE)
  if agent_exe
    exec(agent_exe, "system-metrics", *@argv)
  else
    abort "This command requires the #{PROGRAM_NAME} agent to be installed. " +
      "Please install it by running `passenger-config install-agent`."
  end
end