Sha256: d4cfa8a443c32d16ce650c51cf9f353a6a3872d0e7fc31ec5a019ce6c88d86f9
Contents?: true
Size: 499 Bytes
Versions: 12
Compression:
Stored size: 499 Bytes
Contents
require 'open4' require 'JenkinsUtil/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
12 entries across 12 versions & 1 rubygems