Sha256: c7766ee9a65d194eaed31b88e329c292d8efca43617a56bba5d67c2d89eb7784
Contents?: true
Size: 719 Bytes
Versions: 11
Compression:
Stored size: 719 Bytes
Contents
require_relative 'base' module VagrantPlugins module Berkshelf module Action class Clean < Base def call(env) if !berkshelf_enabled?(env) @logger.info "Berkshelf disabled, skipping" return @app.call(env) end env[:machine].ui.info "Running cleanup tasks for 'berkshelf'..." if env[:berkshelf].shelf if File.exist?(env[:berkshelf].shelf) FileUtils.rm_rf(env[:berkshelf].shelf) env[:berkshelf].shelf = nil else @logger.warn "The Berkshelf shelf did not exist for cleanup!" end end @app.call(env) end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems