Class: VagrantPlugins::ProviderLibvirt::Action::RemoveLibvirtImage

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-libvirt/action/remove_libvirt_image.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, _env) ⇒ RemoveLibvirtImage

Returns a new instance of RemoveLibvirtImage.


7
8
9
10
# File 'lib/vagrant-libvirt/action/remove_libvirt_image.rb', line 7

def initialize(app, _env)
  @logger = Log4r::Logger.new('vagrant_libvirt::action::remove_libvirt_image')
  @app = app
end

Instance Method Details

#call(env) ⇒ Object


12
13
14
15
16
# File 'lib/vagrant-libvirt/action/remove_libvirt_image.rb', line 12

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