Sha256: f6eece79a518777cf83489bc958f5887a91518c90684fa74e44a2158c7ab1f23
Contents?: true
Size: 844 Bytes
Versions: 25
Compression:
Stored size: 844 Bytes
Contents
module VagrantPlugins module Orchestrate module Action class FilterManaged def initialize(app, _env) @app = app end # rubocop:disable Metrics/AbcSize 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 # rubocop:enable Metrics/AbcSize end end end end
Version data entries
25 entries across 25 versions & 1 rubygems