lib/kontena/cli/plugins/install_command.rb in kontena-cli-1.1.0 vs lib/kontena/cli/plugins/install_command.rb in kontena-cli-1.1.1.rc1

- old
+ new

@@ -21,9 +21,13 @@ puts Kontena.pastel.red(ex.message) ENV["DEBUG"] && puts(ex.backtrace.join("\n ")) spin.fail! end end + + spinner "Running cleanup" do |spin| + Kontena::PluginManager.instance.cleanup_plugin(name) + end else installed = spinner "Installing plugin #{name.colorize(:cyan)}" do |spin| begin Kontena::PluginManager.instance.install_plugin(name, pre: pre?, version: version) rescue => ex