Exception: Command::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/local/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, status, stdin, stdout, stderr) ⇒ Error

Returns a new instance of Error.



15
16
17
18
19
20
21
22
# File 'lib/local/command.rb', line 15

def initialize(cmd, status, stdin, stdout, stderr)
  super(stderr.join("\n"))
  @cmd = cmd
  @status = status
  @stdin = stdin
  @stdout = stdout
  @stderr = stderr
end

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



9
10
11
# File 'lib/local/command.rb', line 9

def cmd
  @cmd
end

#statusObject (readonly)

Returns the value of attribute status.



10
11
12
# File 'lib/local/command.rb', line 10

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



13
14
15
# File 'lib/local/command.rb', line 13

def stderr
  @stderr
end

#stdinObject (readonly)

Returns the value of attribute stdin.



11
12
13
# File 'lib/local/command.rb', line 11

def stdin
  @stdin
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



12
13
14
# File 'lib/local/command.rb', line 12

def stdout
  @stdout
end