Exception: Command::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/prick/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.



10
11
12
13
14
15
16
17
# File 'lib/prick/local/command.rb', line 10

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.



4
5
6
# File 'lib/prick/local/command.rb', line 4

def cmd
  @cmd
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/prick/local/command.rb', line 5

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



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

def stderr
  @stderr
end

#stdinObject (readonly)

Returns the value of attribute stdin.



6
7
8
# File 'lib/prick/local/command.rb', line 6

def stdin
  @stdin
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



7
8
9
# File 'lib/prick/local/command.rb', line 7

def stdout
  @stdout
end