Parent

RBatch::CmdResult

Public Class Methods

new(stdout_file, stderr_file, status, cmd_str) click to toggle source
# File lib/rbatch/cmd.rb, line 61
def initialize(stdout_file, stderr_file, status, cmd_str)
  @stdout_file = stdout_file
  @stderr_file = stderr_file
  @status = status
  @cmd_str = cmd_str
end

Public Instance Methods

cmd_str() click to toggle source
# File lib/rbatch/cmd.rb, line 70
def cmd_str     ; @cmd_str     ; end
status() click to toggle source
# File lib/rbatch/cmd.rb, line 69
def status      ; @status      ; end
stderr() click to toggle source
# File lib/rbatch/cmd.rb, line 74
def stderr
  File.read(@stderr_file)
end
stderr_file() click to toggle source
# File lib/rbatch/cmd.rb, line 68
def stderr_file ; @stderr_file ; end
stdout() click to toggle source
# File lib/rbatch/cmd.rb, line 71
def stdout
  File.read(@stdout_file)
end
stdout_file() click to toggle source
# File lib/rbatch/cmd.rb, line 67
def stdout_file ; @stdout_file ; end
to_h() click to toggle source
# File lib/rbatch/cmd.rb, line 77
def to_h
  {:cmd_str => @cmd_str,:stdout => stdout, :stderr => stderr, :status => status}
end
to_s() click to toggle source
# File lib/rbatch/cmd.rb, line 80
def to_s
  to_h.to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.