Sha256: 319f317323564950c04a9e51545a8ecf349e6b2acd39dc037630a0e3480957a9

Contents?: true

Size: 381 Bytes

Versions: 20

Compression:

Stored size: 381 Bytes

Contents

module VagrantPlugins
  module Cloudstack
    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_cloudstack.warn_networks"))
          end

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.5.2 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-1.5.1 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-1.5.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-1.4.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-1.1.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-1.0.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.10.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.9.1 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.9.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.8.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.7.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.6.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.5.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.4.1 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.4.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.2.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.1.0 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.0.7 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.0.6 lib/vagrant-cloudstack/action/warn_networks.rb
vagrant-cloudstack-0.0.5 lib/vagrant-cloudstack/action/warn_networks.rb