Sha256: 1076a84da77178b63910663f0ef54b9e6ab5aed05aac862decfa705f367e144c

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

module VagrantPlugins

    module HyperV

        module Action

            class HasSnapshot

                def initialize(app, env)
                    @app = app
                end

                def call(env)

		    if env[:snap_name].nil?
                        env[:result] = env[:machine].provider.driver.has_snapshot?
		    else
			env[:result] = env[:machine].provider.driver.has_snapshot?(env[:snap_name])
		    end

                    @app.call(env)

                end

            end

        end

    end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-multiprovider-snap-0.0.15 lib/vagrant-multiprovider-snap/providers/hyperv/action/has_snapshot.rb
vagrant-multiprovider-snap-0.0.14 lib/vagrant-multiprovider-snap/providers/hyperv/action/has_snapshot.rb
vagrant-multiprovider-snap-0.0.13 lib/vagrant-multiprovider-snap/providers/hyperv/action/has_snapshot.rb