Class: VagrantPlugins::ProviderLibvirt::Action::RemoveLibvirtImage
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderLibvirt::Action::RemoveLibvirtImage
- Defined in:
- lib/vagrant-libvirt/action/remove_libvirt_image.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, _env) ⇒ RemoveLibvirtImage
constructor
A new instance of RemoveLibvirtImage.
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 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 |