Class: VagrantPlugins::ProxyConf::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-proxyconf/action.rb,
lib/vagrant-proxyconf/action/base.rb,
lib/vagrant-proxyconf/action/only_once.rb,
lib/vagrant-proxyconf/action/configure_apt_proxy.rb,
lib/vagrant-proxyconf/action/configure_env_proxy.rb,
lib/vagrant-proxyconf/action/configure_yum_proxy.rb,
lib/vagrant-proxyconf/action/configure_chef_proxy.rb

Overview

Middleware stack builders

Defined Under Namespace

Classes: Base, ConfigureAptProxy, ConfigureChefProxy, ConfigureEnvProxy, ConfigureYumProxy, OnlyOnce

Class Method Summary collapse

Class Method Details

.configure(opts = {}) ⇒ Object

Returns an action middleware stack that configures the VM

Parameters:

  • opts (Hash) (defaults to: {})

    the options to be passed to OnlyOnce

Options Hash (opts):

  • :before (Boolean) — default: false

    should the block be called before (instead of after) passing control to the next middleware



15
16
17
# File 'lib/vagrant-proxyconf/action.rb', line 15

def self.configure(opts = {})
  Vagrant::Action::Builder.build(OnlyOnce, opts, &config_actions)
end