Sha256: 17507833f9561ee101183f820ac1bfe09722aefe1e05564e9f08a9895c8aba04

Contents?: true

Size: 969 Bytes

Versions: 5

Compression:

Stored size: 969 Bytes

Contents

# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
module VagrantPlugins
  module Google
    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_google.warn_networks"))
          end

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
vagrant-google-0.1.5 lib/vagrant-google/action/warn_networks.rb
vagrant-google-0.1.5.rc1 lib/vagrant-google/action/warn_networks.rb
tcr-vagrant-google-0.1.4 lib/vagrant-google/action/warn_networks.rb
vagrant-google-0.1.4 lib/vagrant-google/action/warn_networks.rb
vagrant-google-0.1.3 lib/vagrant-google/action/warn_networks.rb