class Nucleon::Util::Shell::Result

Attributes

command[R]
status[RW]

Public Class Methods

new(command, status = nil) click to toggle source
   # File lib/core/util/shell.rb
20 def initialize(command, status = nil)
21   @command = command
22   @output  = ''
23   @errors  = ''
24   @status  = status.nil? ? Nucleon.code.success : status
25 end

Public Instance Methods

append_errors(error_str) click to toggle source
   # File lib/core/util/shell.rb
43 def append_errors(error_str)
44   @errors << error_str.rstrip << "\n"
45 end
append_output(output_str) click to toggle source
   # File lib/core/util/shell.rb
39 def append_output(output_str)
40   @output << output_str.rstrip << "\n"
41 end
errors() click to toggle source
   # File lib/core/util/shell.rb
33 def errors
34   @errors.strip
35 end
output() click to toggle source
   # File lib/core/util/shell.rb
29 def output
30   @output.strip
31 end