Sha256: 8dc9b4a56584531a930716bac24964e4e025985b52629597349e371211001c02
Contents?: true
Size: 624 Bytes
Versions: 5
Compression:
Stored size: 624 Bytes
Contents
require 'yaml' module VagrantPlugins module ProviderLibvirt module Action class PruneNFSExports def initialize(app, env) @app = app end def call(env) if env[:host] uuid = env[:machine].id # get all uuids uuids = env[:machine].provider.driver.connection.servers.all.map(&:id) # not exiisted in array will removed from nfs uuids.delete(uuid) env[:host].capability( :nfs_prune, env[:machine].ui, uuids) end @app.call(env) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems