Sha256: 32a64ef8e7a69f39402f4779407fa71c04f67f5e86cb40a34585c8733560a2d1
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 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 # VM is not in the registry @logger.warn('VM has not been created') env[:result] = false end @app.call env end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-vcenter-0.3.3 | lib/vagrant-vcenter/action/is_created.rb |