Sha256: 12aab2bf504183614049415834a076359ee0a6fa35430d8aaea482132636a786
Contents?: true
Size: 761 Bytes
Versions: 13
Compression:
Stored size: 761 Bytes
Contents
module VagrantPlugins module Orchestrate module Action class FilterManaged def initialize(app, _env) @app = app end def call(env) machine = env[:machine] if machine.provider_name == :managed if (machine.config.orchestrate.filter_managed_commands) && (ENV["VAGRANT_ORCHESTRATE_COMMAND"] != "PUSH") env[:ui].info("Ignoring action #{env[:machine_action]} for managed server #{machine.name}.") env[:ui].info("Set `config.orchestrate.filter_managed_commands = false` in your vagrantfile to disable.") else @app.call(env) end else @app.call(env) end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems