Class: Verto::SystemCommandExecutor::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/verto/utils/system_command_executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



9
10
11
# File 'lib/verto/utils/system_command_executor.rb', line 9

def error
  @error
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



9
10
11
# File 'lib/verto/utils/system_command_executor.rb', line 9

def output
  @output
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



9
10
11
# File 'lib/verto/utils/system_command_executor.rb', line 9

def result
  @result
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/verto/utils/system_command_executor.rb', line 14

def error?
  !success?
end

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/verto/utils/system_command_executor.rb', line 10

def success?
  result.success?
end