Class: ProconBypassMan::SendInfoLogCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/commands/send_info_log_command.rb

Class Method Summary collapse

Class Method Details

.execute(message:, stdout: true) ⇒ void

This method returns an undefined value.

Parameters:

  • message (String)


4
5
6
7
8
9
10
# File 'lib/procon_bypass_man/commands/send_info_log_command.rb', line 4

def self.execute(message: , stdout: true)
  body = message
  ProconBypassMan.logger.info(body)
  puts body if stdout

  ProconBypassMan::ReportInfoLogJob.perform(body)
end