Sha256: 64c7eb71e423b4647e36d456de8ff36b241fd1a555d895556cabc9734fe833b9

Contents?: true

Size: 337 Bytes

Versions: 8

Compression:

Stored size: 337 Bytes

Contents

class CommandResult
  attr_reader :command_line, :output, :error, :exit_status

  def initialize(command_line, output, error, exit_status)
    @command_line = command_line
    @output       = output
    @error        = error
    @exit_status  = exit_status
  end

  def inspect
    "#{to_s.chop} @exit_status=#{@exit_status}>"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
linux_admin-0.7.0 lib/linux_admin/command_result.rb
linux_admin-0.6.0 lib/linux_admin/command_result.rb
linux_admin-0.5.7 lib/linux_admin/command_result.rb
linux_admin-0.5.6 lib/linux_admin/command_result.rb
linux_admin-0.5.5 lib/linux_admin/command_result.rb
linux_admin-0.5.4 lib/linux_admin/command_result.rb
linux_admin-0.5.3 lib/linux_admin/command_result.rb
linux_admin-0.5.2 lib/linux_admin/command_result.rb