class KPM::PluginsManager
def restart(plugin_name_or_path, plugin_version=nil)
def restart(plugin_name_or_path, plugin_version=nil) update_fs(plugin_name_or_path, plugin_version) do |tmp_dir| # Remove stop.txt so that the plugin is started if it was stopped FileUtils.rm_f(tmp_dir.join('stop.txt')) FileUtils.touch(tmp_dir.join('restart.txt')) end end