Class: Smith::Workflow::BranchEnv

Inherits:
Struct
  • Object
show all
Defined in:
lib/smith/workflow.rb

Overview

keyword_init: true for forward/backward compat (see UsageEntry).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#branch_estimatesObject

Returns the value of attribute branch_estimates

Returns:

  • (Object)

    the current value of branch_estimates



171
172
173
# File 'lib/smith/workflow.rb', line 171

def branch_estimates
  @branch_estimates
end

#deadlineObject

Returns the value of attribute deadline

Returns:

  • (Object)

    the current value of deadline



171
172
173
# File 'lib/smith/workflow.rb', line 171

def deadline
  @deadline
end

#guardrail_sourcesObject

Returns the value of attribute guardrail_sources

Returns:

  • (Object)

    the current value of guardrail_sources



171
172
173
# File 'lib/smith/workflow.rb', line 171

def guardrail_sources
  @guardrail_sources
end

#prepared_inputObject

Returns the value of attribute prepared_input

Returns:

  • (Object)

    the current value of prepared_input



171
172
173
# File 'lib/smith/workflow.rb', line 171

def prepared_input
  @prepared_input
end

#scoped_storeObject

Returns the value of attribute scoped_store

Returns:

  • (Object)

    the current value of scoped_store



171
172
173
# File 'lib/smith/workflow.rb', line 171

def scoped_store
  @scoped_store
end

Instance Method Details

#setup_threadObject



175
176
177
178
179
# File 'lib/smith/workflow.rb', line 175

def setup_thread
  Smith::Tool.current_guardrails = guardrail_sources
  Smith::Tool.current_deadline = deadline
  Smith.scoped_artifacts = scoped_store
end

#teardown_threadObject



181
182
183
184
185
# File 'lib/smith/workflow.rb', line 181

def teardown_thread
  Smith::Tool.current_guardrails = nil
  Smith::Tool.current_deadline = nil
  Smith.scoped_artifacts = nil
end