lib/commands/stop.rb in nutella_framework-0.4.8 vs lib/commands/stop.rb in nutella_framework-0.4.9

- old
+ new

@@ -37,15 +37,15 @@ end # Output success message print_success_message(app_id, run_id, 'stopped') end - - + + private - + def remove_from_run_list( app_id, run_id ) unless Nutella.runlist.delete? app_id, run_id console.warn "Run #{run_id} doesn't exist. Impossible to stop it." return false end @@ -65,11 +65,11 @@ end def stop_framework_components nutella_components_dir = "#{Nutella::NUTELLA_HOME}framework_components" - for_each_component_in_dir nutella_components_dir do |component| + ComponentsList.for_each_component_in_dir nutella_components_dir do |component| pid_file_path = "#{nutella_components_dir}/#{component}/.pid" kill_process_with_pid pid_file_path end end @@ -94,8 +94,8 @@ # Pid file exists but process is dead. Do nothing end File.delete pid_file_path end end - + end end