Sha256: 33f2f721a3a41d3e2d40e497ed059940d9a9001e9139f91da38090b6d38f514a
Contents?: true
Size: 665 Bytes
Versions: 8
Compression:
Stored size: 665 Bytes
Contents
require 'vagrant-vultr/helpers/client' module VagrantPlugins module Vultr module Action class Destroy include Helpers::Client def initialize(app, env) @app = app @machine = env[:machine] @client = client @logger = Log4r::Logger.new('vagrant::vultr::destroy') end def call(env) @client.destroy_server(@machine.id) env[:ui].info 'Waiting for server to be destroyed...' @client.wait_to_destroy(@machine.id) env[:ui].info 'Machine is destroyed.' @machine.id = nil @app.call(env) end end end end end
Version data entries
8 entries across 8 versions & 3 rubygems