Class: Smith::Workflow::BranchEnv

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

Overview

rubocop:disable Style/RedundantStructKeywordInit

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



6
7
8
# File 'lib/smith/workflow/branch_env.rb', line 6

def branch_estimates
  @branch_estimates
end

#deadlineObject

Returns the value of attribute deadline

Returns:

  • (Object)

    the current value of deadline



6
7
8
# File 'lib/smith/workflow/branch_env.rb', line 6

def deadline
  @deadline
end

#guardrail_sourcesObject

Returns the value of attribute guardrail_sources

Returns:

  • (Object)

    the current value of guardrail_sources



6
7
8
# File 'lib/smith/workflow/branch_env.rb', line 6

def guardrail_sources
  @guardrail_sources
end

#prepared_inputObject

Returns the value of attribute prepared_input

Returns:

  • (Object)

    the current value of prepared_input



6
7
8
# File 'lib/smith/workflow/branch_env.rb', line 6

def prepared_input
  @prepared_input
end

#scoped_storeObject

Returns the value of attribute scoped_store

Returns:

  • (Object)

    the current value of scoped_store



6
7
8
# File 'lib/smith/workflow/branch_env.rb', line 6

def scoped_store
  @scoped_store
end

Instance Method Details

#setup_threadObject



10
11
12
13
14
# File 'lib/smith/workflow/branch_env.rb', line 10

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

#teardown_threadObject



16
17
18
19
20
# File 'lib/smith/workflow/branch_env.rb', line 16

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