diff --git a/devops-service/providers/static.rb b/devops-service/providers/static.rb index d7889a5..4f1d788 100644 --- a/devops-service/providers/static.rb +++ b/devops-service/providers/static.rb @@ -1,5 +1,5 @@ require "providers/base_provider" -require "commands/server" +require "lib/executors/server_executor" module Provider class Static < BaseProvider @@ -53,8 +53,7 @@ module Provider end def delete_server s - cert = @@mongo.key(s.key).path - res = ::ServerCommands.unbootstrap(s, cert) + res = Devops::Executor::ServerExecutor.new(s, "").unbootstrap() m = "Static server with id '#{s.id}' and name '#{s.chef_node_name}' " return m + (res.nil? ? "has been unbootstraped" : "can not be unbootstraped: #{res}") end