Exception: RSCM::CommandLine::ExecutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rscm/command_line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, dir, exitstatus, stderr) ⇒ ExecutionError

Returns a new instance of ExecutionError.



8
# File 'lib/rscm/command_line.rb', line 8

def initialize(cmd, dir, exitstatus, stderr); @cmd, @dir, @exitstatus, @stderr = cmd, dir, exitstatus, stderr; end

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



7
8
9
# File 'lib/rscm/command_line.rb', line 7

def cmd
  @cmd
end

#dirObject (readonly)

Returns the value of attribute dir.



7
8
9
# File 'lib/rscm/command_line.rb', line 7

def dir
  @dir
end

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



7
8
9
# File 'lib/rscm/command_line.rb', line 7

def exitstatus
  @exitstatus
end

#stderrObject (readonly)

Returns the value of attribute stderr.



7
8
9
# File 'lib/rscm/command_line.rb', line 7

def stderr
  @stderr
end

Instance Method Details

#to_sObject



9
10
11
12
13
14
# File 'lib/rscm/command_line.rb', line 9

def to_s
  "\ndir       : #{@dir}\n" +
  "command   : #{@cmd}\n" +
  "exitstatus: #{@exitstatus}\n" +
  "STDERR TAIL START\n#{@stderr}\nSTDERR TAIL END\n"
end