Sha256: 6316a0315489d89e35763e96acaf2902b918e237764f7660fea840fa69f60b5d
Contents?: true
Size: 580 Bytes
Versions: 9
Compression:
Stored size: 580 Bytes
Contents
module VagrantPlugins module Skytap module Action # Our modified "up" command captures the VM states in the initial_states hash # before running them, potentially in parallel. class InitialState def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_skytap::action::initial_state") end def call(env) # if initial_states is absent, result is nil env[:result] = env[:initial_states].try(:[], env[:machine].id) @app.call(env) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems