Sha256: b8d77b85bdc7cea8b30df1434e8353bcb21f1e4337fa3f95c88783bf64cf98b6

Contents?: true

Size: 594 Bytes

Versions: 10

Compression:

Stored size: 594 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 your 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

10 entries across 10 versions & 1 rubygems

Version Path
vagrant-libvirt-0.5.3 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.5.2 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.5.1 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.5.0 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.4.1 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.4.0 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.3.0 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.2.1 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.1.2 lib/vagrant-libvirt/action/remove_libvirt_image.rb
vagrant-libvirt-0.1.0 lib/vagrant-libvirt/action/remove_libvirt_image.rb