Class: VagrantPlugins::ProxyConf::Action
- Inherits:
-
Object
- Object
- VagrantPlugins::ProxyConf::Action
- Defined in:
- lib/vagrant-proxyconf/action.rb,
lib/vagrant-proxyconf/action/base.rb,
lib/vagrant-proxyconf/action/only_once.rb,
lib/vagrant-proxyconf/action/is_enabled.rb,
lib/vagrant-proxyconf/action/configure_apt_proxy.rb,
lib/vagrant-proxyconf/action/configure_env_proxy.rb,
lib/vagrant-proxyconf/action/configure_git_proxy.rb,
lib/vagrant-proxyconf/action/configure_npm_proxy.rb,
lib/vagrant-proxyconf/action/configure_svn_proxy.rb,
lib/vagrant-proxyconf/action/configure_yum_proxy.rb,
lib/vagrant-proxyconf/action/configure_chef_proxy.rb,
lib/vagrant-proxyconf/action/configure_pear_proxy.rb,
lib/vagrant-proxyconf/action/configure_docker_proxy.rb
Overview
Middleware stack builders
Defined Under Namespace
Classes: Base, ConfigureAptProxy, ConfigureChefProxy, ConfigureDockerProxy, ConfigureEnvProxy, ConfigureGitProxy, ConfigureNpmProxy, ConfigurePearProxy, ConfigureSvnProxy, ConfigureYumProxy, IsEnabled, OnlyOnce
Constant Summary collapse
- Builtin =
Shortcut
Vagrant::Action::Builtin
Class Method Summary collapse
-
.configure(opts = {}) ⇒ Object
Returns an action middleware stack that configures the VM.
-
.configure_after_provisoner ⇒ Object
Returns an action middleware stack that configures the VM after provisioner runs.
Class Method Details
.configure(opts = {}) ⇒ Object
Returns an action middleware stack that configures the VM
25 26 27 |
# File 'lib/vagrant-proxyconf/action.rb', line 25 def self.configure(opts = {}) Vagrant::Action::Builder.build(OnlyOnce, opts, &config_actions) end |
.configure_after_provisoner ⇒ Object
Returns an action middleware stack that configures the VM after provisioner runs.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/vagrant-proxyconf/action.rb', line 31 def self.configure_after_provisoner Vagrant::Action::Builder.new.tap do |b| b.use Builtin::Call, IsEnabled do |env, b2| next if !env[:result] b2.use ConfigureDockerProxy b2.use ConfigureGitProxy b2.use ConfigureNpmProxy b2.use ConfigurePearProxy b2.use ConfigureSvnProxy end end end |