Sha256: c780b11dc2e8098063c005fb7bbcdbf4cc98624eb18f093646f30bc1072936a9
Contents?: true
Size: 637 Bytes
Versions: 7
Compression:
Stored size: 637 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
7 entries across 7 versions & 1 rubygems