Sha256: b5cceacba7ccb574e4d12bbb39d55ca0f753539705a8997afabe0bdfb9cbe8db
Contents?: true
Size: 589 Bytes
Versions: 3
Compression:
Stored size: 589 Bytes
Contents
module VagrantPlugins module ProviderVirtualBox module Action class HasSnapshot def initialize(app, env) @app = app end def call(env) if env[:snap_name].nil? env[:snap_name] = env[:machine].provider.driver.snapshot_list.last end env[:result] = env[:machine].provider.driver.has_snapshot?(env[:snap_name]) @app.call(env) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems