Sha256: c4d76c95168a8dfa94cb77207b5df17d670e7dbb947b8b87b1d0c61b8b61ed7e
Contents?: true
Size: 499 Bytes
Versions: 18
Compression:
Stored size: 499 Bytes
Contents
require 'open4' require 'jenkins_util/logger_util' class CommandLineScript include LoggerUtil attr_reader :command, :pid, :stdin, :stdout, :sterr, :exit_status def initialize(command) @command = command LoggerUtil.log.debug("Executing: \"#{@command}\"") status = Open4.popen4(@command) do |pid, stdin, stdout, stderr| @pid = pid @stdin = stdin @stdout = stdout.readlines @error = stderr.readlines end @exit_status = status.exitstatus end end
Version data entries
18 entries across 18 versions & 1 rubygems