class CfScript::Output
Attributes
command[R]
status[R]
stderr[R]
stdout[R]
Public Class Methods
new(command, stdout, stderr, status)
click to toggle source
# File lib/cf_script/output.rb, line 19 def initialize(command, stdout, stderr, status) @command = command @stdout = stdout @stderr = stderr @status = status end
Public Instance Methods
attributes()
click to toggle source
# File lib/cf_script/output.rb, line 42 def attributes parse_attribute_list(out) end
attributes_from(line_start)
click to toggle source
# File lib/cf_script/output.rb, line 50 def attributes_from(line_start) parse_attribute_list(out.from(line_start)) end
err()
click to toggle source
# File lib/cf_script/output.rb, line 34 def err @sane_stderr ||= Buffer.new(stderr) end
good?()
click to toggle source
# File lib/cf_script/output.rb, line 26 def good? status.success? && status.exitstatus == 0 end
last_line()
click to toggle source
# File lib/cf_script/output.rb, line 38 def last_line out.last_line end
line_attributes(line_regexp)
click to toggle source
# File lib/cf_script/output.rb, line 46 def line_attributes(line_regexp) parse_line_attributes(out, line_regexp) end
out()
click to toggle source
# File lib/cf_script/output.rb, line 30 def out @sane_stdout ||= Buffer.new(stdout) end
section_attributes(header)
click to toggle source
# File lib/cf_script/output.rb, line 58 def section_attributes(header) parse_section_attributes(out, header) end
table(headers)
click to toggle source
# File lib/cf_script/output.rb, line 54 def table(headers) parse_table(out, headers) end