Class: ConfigOMat::FlipFlopper::Memory

Inherits:
LifecycleVM::Memory
  • Object
show all
Defined in:
lib/config_o_mat/flip_flopper/memory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(systemd_interface: nil, service: nil, min_wait: 5, max_wait: 30, runtime_directory: nil, running_instance: nil, activating_instance: nil, activation_status: nil, activating_interface: nil, logger: nil) ⇒ Memory

Returns a new instance of Memory.



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 26

def initialize(
  systemd_interface: nil,
  service: nil,
  min_wait: 5,
  max_wait: 30,
  runtime_directory: nil,
  running_instance: nil,
  activating_instance: nil,
  activation_status: nil,
  activating_interface: nil,
  logger: nil
)
  @systemd_interface = systemd_interface
  @service = service
  @min_wait = min_wait
  @max_wait = max_wait
  @runtime_directory = runtime_directory
  @running_instance = running_instance
  @activating_instance = activating_instance
  @activation_status = activation_status
  @activating_interface = activating_interface
  @logger = logger
end

Instance Attribute Details

#activating_instanceObject

Returns the value of attribute activating_instance.



23
24
25
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 23

def activating_instance
  @activating_instance
end

#activating_interfaceObject

Returns the value of attribute activating_interface.



23
24
25
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 23

def activating_interface
  @activating_interface
end

#activation_statusObject

Returns the value of attribute activation_status.



23
24
25
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 23

def activation_status
  @activation_status
end

#max_waitObject

Returns the value of attribute max_wait.



23
24
25
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 23

def max_wait
  @max_wait
end

#min_waitObject

Returns the value of attribute min_wait.



23
24
25
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 23

def min_wait
  @min_wait
end

#running_instanceObject

Returns the value of attribute running_instance.



23
24
25
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 23

def running_instance
  @running_instance
end

#runtime_directoryObject (readonly)

Returns the value of attribute runtime_directory.



22
23
24
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 22

def runtime_directory
  @runtime_directory
end

#serviceObject (readonly)

Returns the value of attribute service.



22
23
24
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 22

def service
  @service
end

#systemd_interfaceObject (readonly)

Returns the value of attribute systemd_interface.



22
23
24
# File 'lib/config_o_mat/flip_flopper/memory.rb', line 22

def systemd_interface
  @systemd_interface
end