Sha256: 3f8e08f07b69addb749679eaa9145ea8f3c07951d2a6bbc44310cccc84792b34
Contents?: true
Size: 636 Bytes
Versions: 5
Compression:
Stored size: 636 Bytes
Contents
module VagrantPlugins module VCenter module Action # This class verifies if the VM has been created. class IsCreated def initialize(app, env) @app = app @logger = Log4r::Logger.new('vagrant_vcenter::action::is_created') end def call(env) vm_id = env[:machine].id if vm_id @logger.info("VM has been created and ID is: [#{vm_id}]") env[:result] = true else @logger.warn('VM has not been created') env[:result] = false end @app.call env end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems