Sha256: 557152e238558dd3513dae79b4f09fb166ec966bbd9ba2ccdecf2a9750194295

Contents?: true

Size: 668 Bytes

Versions: 4

Compression:

Stored size: 668 Bytes

Contents

require_relative 'action/write_nginx_config'

module VagrantPlugins
  module ReverseProxy
    module Action
      include Vagrant::Action::Builtin

      # We (currently) don't distinguish between upping and downing a
      # machine; we always write a complete config with all machines.
      def self.add_machine
        Vagrant::Action::Builder.new.tap do |builder|
          builder.use ConfigValidate
          builder.use WriteNginxConfig
        end
      end

      def self.remove_machine
        Vagrant::Action::Builder.new.tap do |builder|
          builder.use ConfigValidate
          builder.use WriteNginxConfig
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vagrant-reverse-proxy-0.0.4 lib/vagrant-reverse-proxy/action.rb
vagrant-reverse-proxy-0.0.3 lib/vagrant-reverse-proxy/action.rb
vagrant-reverse-proxy-0.0.2 lib/vagrant-reverse-proxy/action.rb
vagrant-reverse-proxy-0.0.1 lib/vagrant-reverse-proxy/action.rb