Sha256: 1637d6b73ca8a10212a6e1d6a845decb77892c7b997750336483819d52e20489

Contents?: true

Size: 379 Bytes

Versions: 20

Compression:

Stored size: 379 Bytes

Contents

module VagrantPlugins
  module OpenStack
    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_openstack.warn_networks"))
          end

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

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
vagrant-openstack-plugin-tom-0.12.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.12.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.11.1 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.11.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.10.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.9.1 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.9.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.8.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.7.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.6.1 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.6.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.5.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.4.1 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.3.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.2.2 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.2.1 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.2.0 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.1.3 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.1.2 lib/vagrant-openstack-plugin/action/warn_networks.rb
vagrant-openstack-plugin-0.1.1 lib/vagrant-openstack/action/warn_networks.rb