Parent

RBatch::CmdResult

Public Class Methods

new(stdout_file, stderr_file, status, cmd_str) click to toggle source
# File lib/rbatch/cmd.rb, line 85
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 94
def cmd_str     ; @cmd_str     ; end
status() click to toggle source
# File lib/rbatch/cmd.rb, line 93
def status      ; @status      ; end
stderr() click to toggle source
# File lib/rbatch/cmd.rb, line 98
def stderr
  File.read(@stderr_file)
end
stderr_file() click to toggle source
# File lib/rbatch/cmd.rb, line 92
def stderr_file ; @stderr_file ; end
stdout() click to toggle source
# File lib/rbatch/cmd.rb, line 95
def stdout
  File.read(@stdout_file)
end
stdout_file() click to toggle source
# File lib/rbatch/cmd.rb, line 91
def stdout_file ; @stdout_file ; end
to_h() click to toggle source
# File lib/rbatch/cmd.rb, line 101
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 104
def to_s
  to_h.to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.