Class: Datadog::CI::Remote::NullComponent

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/ci/remote/null_component.rb

Overview

No-op implementation used when remote configuration is disabled.

Constant Summary collapse

FILE_STORAGE_KEY =
"remote_component_state"

Instance Method Summary collapse

Instance Method Details

#configure(_test_session) ⇒ Object



10
11
# File 'lib/datadog/ci/remote/null_component.rb', line 10

def configure(_test_session)
end

#restore_state(_state) ⇒ Object



17
18
# File 'lib/datadog/ci/remote/null_component.rb', line 17

def restore_state(_state)
end

#restore_state_from_datadog_test_runner ⇒ Object



24
25
26
# File 'lib/datadog/ci/remote/null_component.rb', line 24

def restore_state_from_datadog_test_runner
  false
end

#serialize_state ⇒ Object



13
14
15
# File 'lib/datadog/ci/remote/null_component.rb', line 13

def serialize_state
  {}
end

#storage_key ⇒ Object



20
21
22
# File 'lib/datadog/ci/remote/null_component.rb', line 20

def storage_key
  FILE_STORAGE_KEY
end