Sha256: 5bc352a66d2c4f8eeb622f73cdfd2de9a762b9f7cb985abe58edeb6228544a07

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 KB

Contents

module VagrantPlugins
  module ReverseProxy
    class Plugin < Vagrant.plugin(2)
        name 'Reverse Proxy'

      description <<-DESC
        This plugin automatically manages a reverse proxy
        configuration in your host machine's web server, which makes
        it easy to access the web servers of your guest machines.

        This is safer and easier than making the guest machine
        completely available on the outside network.
      DESC

      config :reverse_proxy do
        require_relative 'config'
        Config
      end

      action_hook(:reverse_proxy, :machine_action_up) do |hook|
        hook.append(Action.add_machine)
      end

      action_hook(:reverse_proxy, :machine_action_suspend) do |hook|
        hook.append(Action.remove_machine)
      end

      action_hook(:reverse_proxy, :machine_action_resume) do |hook|
        hook.append(Action.add_machine)
      end

      action_hook(:reverse_proxy, :machine_action_halt) do |hook|
        hook.append(Action.remove_machine)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vagrant-reverse-proxy-0.3.1 lib/vagrant-reverse-proxy/plugin.rb
vagrant-reverse-proxy-0.3.0 lib/vagrant-reverse-proxy/plugin.rb
vagrant-reverse-proxy-0.2.1 lib/vagrant-reverse-proxy/plugin.rb
vagrant-reverse-proxy-0.2.0 lib/vagrant-reverse-proxy/plugin.rb
vagrant-reverse-proxy-0.1.0 lib/vagrant-reverse-proxy/plugin.rb
vagrant-reverse-proxy-0.0.4 lib/vagrant-reverse-proxy/plugin.rb
vagrant-reverse-proxy-0.0.3 lib/vagrant-reverse-proxy/plugin.rb
vagrant-reverse-proxy-0.0.2 lib/vagrant-reverse-proxy/plugin.rb
vagrant-reverse-proxy-0.0.1 lib/vagrant-reverse-proxy/plugin.rb