Sha256: 34becd563ac7acda992ba8ea829aa3eb32c4bf61972a66734df68bc0c7365e01
Contents?: true
Size: 571 Bytes
Versions: 10
Compression:
Stored size: 571 Bytes
Contents
module Vagrant class Action module VM class Persist def initialize(app, env) @app = app # Error the environment if the dotfile is not valid env.error!(:dotfile_error, :env => env.env) if File.exist?(env.env.dotfile_path) && !File.file?(env.env.dotfile_path) end def call(env) env.logger.info "Persisting the VM UUID (#{env["vm"].uuid})" env.env.update_dotfile @app.call(env) end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems