Sha256: 3e1c8b7ca69af6af0871ca5848d152e393b83845d6eb5384bc898993e0df9baf
Contents?: true
Size: 564 Bytes
Versions: 9
Compression:
Stored size: 564 Bytes
Contents
module VagrantPlugins module Skytap module Action # This can be used with "Call" built-in to check if the action # is being performed as part of a parallel operation. class IsParallelized def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_skytap::action::is_parallelized") end def call(env) env[:result] = env[:parallel] @logger.info("Parallelization is #{env[:result] ? 'on' : 'off'}") @app.call(env) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems