Sha256: 2e31b8d8e23d10775b0cd019ba1f0ce7dbee459ab09b9422a92e8a54dba903b8
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
module HashiCorp module VagrantVMwareworkstation 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