Exception: Rye::Err

Inherits:
RyeError show all
Defined in:
lib/rye.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rap) ⇒ Err

  • rap a Rye::Rap object



97
98
99
# File 'lib/rye.rb', line 97

def initialize(rap)
  @rap = rap
end

Instance Attribute Details

#rapObject (readonly)

Returns the value of attribute rap.



95
96
97
# File 'lib/rye.rb', line 95

def rap
  @rap
end

Instance Method Details

#exit_statusObject



105
# File 'lib/rye.rb', line 105

def exit_status; @rap.exit_status if @rap; end

#messageObject



100
101
102
# File 'lib/rye.rb', line 100

def message
  "%s (cmd: %s; status: %s)" % [@rap.stderr.join($/), @rap.cmd, @rap.exit_status]
end

#stderrObject



103
# File 'lib/rye.rb', line 103

def stderr; @rap.stderr if @rap; end

#stdoutObject



104
# File 'lib/rye.rb', line 104

def stdout; @rap.stdout if @rap; end