Class: ConfigOMat::Op::StopInitialInstance
- Inherits:
-
LifecycleVM::OpBase
- Object
- LifecycleVM::OpBase
- ConfigOMat::Op::StopInitialInstance
- Defined in:
- lib/config_o_mat/flip_flopper/op/stop_initial_instance.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/config_o_mat/flip_flopper/op/stop_initial_instance.rb', line 24 def call instance_name = "#{service}#{running_instance}" file_path = File.join(runtime_directory, "#{instance_name}.stop") logger&.notice(:service_stop, name: instance_name) FileUtils.touch(file_path) end |