Class: ConfigOMat::Op::StopActivatingInstance

Inherits:
LifecycleVM::OpBase
  • Object
show all
Defined in:
lib/config_o_mat/flip_flopper/op/stop_activating_instance.rb

Instance Method Summary collapse

Instance Method Details

#callObject



24
25
26
27
28
29
30
31
# File 'lib/config_o_mat/flip_flopper/op/stop_activating_instance.rb', line 24

def call
  instance_name = "#{service}#{activating_instance}"
  file_path = File.join(runtime_directory,  "#{instance_name}.stop")

  logger&.notice(:service_stop, name: instance_name)

  FileUtils.touch(file_path)
end