Class: OpsWalrus::Invocation::Success

Inherits:
Result
  • Object
show all
Defined in:
lib/opswalrus/ops_file_script_dsl.rb

Instance Attribute Summary

Attributes inherited from Result

#exit_status, #value

Instance Method Summary collapse

Methods inherited from Result

#failure?

Constructor Details

#initialize(value) ⇒ Success

Returns a new instance of Success.



32
33
34
# File 'lib/opswalrus/ops_file_script_dsl.rb', line 32

def initialize(value)
  super(value, 0)
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/opswalrus/ops_file_script_dsl.rb', line 35

def success?
  true
end