Sha256: 2f4a1477956d514e274b4058bd75ab2fa14f041138fae64c32bd9500afd9dfc9

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

class ShellRunner
  # @param [String] command
  # @param [Boolean] stdout
  # @return [void]
  def self.execute(command, stdout: true)
    system(command) # TODO: ここでエラーが起きたときに、エラーをログに出力する
    if stdout
      ProconBypassMan.logger.info("[SHELL]: #{command}")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/support/shell_runner.rb