Class: BlueGreenProcess::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/blue_green_process/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#logger ⇒ Object



17
18
19
# File 'lib/blue_green_process/config.rb', line 17

def logger
  @logger ||= Logger.new("/dev/null")
end

Instance Method Details

#after_fork ⇒ Object



13
14
15
# File 'lib/blue_green_process/config.rb', line 13

def after_fork
  @after_fork_block || -> {}
end

#after_fork=(block) ⇒ Object



9
10
11
# File 'lib/blue_green_process/config.rb', line 9

def after_fork=(block)
  @after_fork_block = block
end

#shared_variables ⇒ Object



21
22
23
24
25
# File 'lib/blue_green_process/config.rb', line 21

def shared_variables
  @shared_variables ||= []
  @shared_variables.push(:extend_run_on_this_process)
  @shared_variables.uniq
end

#shared_variables=(value) ⇒ Object



27
28
29
30
31
# File 'lib/blue_green_process/config.rb', line 27

def shared_variables=(value)
  @shared_variables = value.map(&:to_s)
  @shared_variables.push("extend_run_on_this_process")
  @shared_variables.uniq
end