Sha256: 479a7d19d79debe733c6b7c892669a630c4979ac18448163f0f370367eb38aa9

Contents?: true

Size: 592 Bytes

Versions: 5

Compression:

Stored size: 592 Bytes

Contents

require 'log4r'

module VagrantPlugins
  module ProviderLibvirt
    module Action
      class RemoveLibvirtImage
        def initialize(app, env)
          @logger = Log4r::Logger.new("vagrant_libvirt::action::remove_libvirt_image")
          @app = app
        end

        def call(env)
          env[:ui].info("Vagrant-libvirt plugin removed box only from you LOCAL ~/.vagrant/boxes directory")
          env[:ui].info("From libvirt storage pool you have to delete image manually(virsh, virt-manager or by any other tool)")
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-libvirt-0.0.36 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.0.35 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.0.33 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.0.32 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.0.31 lib/vagrant-libvirt/action/remove_libvirt_image.rb