Sha256: 225d678baebf1ca7cd37f140f7455eb4dce4e2f1ed720467c697723e0a3aae5b
Contents?: true
Size: 587 Bytes
Versions: 7
Compression:
Stored size: 587 Bytes
Contents
module Vagrant module LXC module Action class WarnNetworks def initialize(app, env) @app = app end def call(env) if public_or_private_network_configured?(env[:machine].config) env[:ui].warn(I18n.t("vagrant_lxc.messages.warn_networks")) end @app.call(env) end def public_or_private_network_configured?(config) config.vm.networks.find do |type, _| [:private_network, :public_network].include?(type.to_sym) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems