Sha256: 97a008b305c11362c9a5e66e7edcb15575ac8a002ed677ebda9e92a3885742e8

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 Bytes

Contents

module VagrantPlugins
  module Shell
    module Action
      class WarnNetworks
        def initialize(app, env)
          @app = app
        end

        def call(env)
          if env[:machine].config.vm.networks.length > 0
            env[:ui].warn(I18n.t("vagrant_shell.warn_networks"))
          end

          @app.call(env)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vagrant-shell-0.2.6 lib/vagrant-shell/action/warn_networks.rb
vagrant-shell-0.2.5 lib/vagrant-shell/action/warn_networks.rb
vagrant-shell-0.2.4 lib/vagrant-shell/action/warn_networks.rb
vagrant-shell-0.2.3 lib/vagrant-shell/action/warn_networks.rb