Class: ActiveStorageValidations::ASVCommandable::CommandResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/active_storage_validations/shared/asv_commandable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



11
12
13
# File 'lib/active_storage_validations/shared/asv_commandable.rb', line 11

def status
  @status
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



11
12
13
# File 'lib/active_storage_validations/shared/asv_commandable.rb', line 11

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



11
12
13
# File 'lib/active_storage_validations/shared/asv_commandable.rb', line 11

def stdout
  @stdout
end

#timed_outObject

Returns the value of attribute timed_out

Returns:

  • (Object)

    the current value of timed_out



11
12
13
# File 'lib/active_storage_validations/shared/asv_commandable.rb', line 11

def timed_out
  @timed_out
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/active_storage_validations/shared/asv_commandable.rb', line 12

def success?
  !timed_out && status.respond_to?(:success?) && status.success?
end