Parent

RBatch::CmdResult

Public Class Methods

new(stdout_file, stderr_file, status, cmd_str) click to toggle source
     # File lib/rbatch/cmd.rb, line 97
 97:     def initialize(stdout_file, stderr_file, status, cmd_str)
 98:       @stdout_file = stdout_file
 99:       @stderr_file = stderr_file
100:       @status = status
101:       @cmd_str = cmd_str
102:     end

Public Instance Methods

cmd_str() click to toggle source
     # File lib/rbatch/cmd.rb, line 106
106:     def cmd_str     ; @cmd_str     ; end
status() click to toggle source
     # File lib/rbatch/cmd.rb, line 105
105:     def status      ; @status      ; end
stderr() click to toggle source
     # File lib/rbatch/cmd.rb, line 110
110:     def stderr
111:       File.read(@stderr_file)
112:     end
stderr_file() click to toggle source
     # File lib/rbatch/cmd.rb, line 104
104:     def stderr_file ; @stderr_file ; end
stdout() click to toggle source
     # File lib/rbatch/cmd.rb, line 107
107:     def stdout
108:       File.read(@stdout_file)
109:     end
stdout_file() click to toggle source
     # File lib/rbatch/cmd.rb, line 103
103:     def stdout_file ; @stdout_file ; end
to_h() click to toggle source
     # File lib/rbatch/cmd.rb, line 113
113:     def to_h
114:       {:cmd_str => @cmd_str,:stdout => stdout, :stderr => stderr, :status => status}
115:     end
to_s() click to toggle source
     # File lib/rbatch/cmd.rb, line 116
116:     def to_s
117:       to_h.to_s
118:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.