Module: VagrantPlugins::Proxy::Action
- Includes:
- Vagrant::Action::Builtin
- Defined in:
- lib/vagrant-proxy/action.rb,
lib/vagrant-proxy/action/is_running_or_active.rb,
lib/vagrant-proxy/action/config_guest_iptables_for_proxy.rb
Defined Under Namespace
Classes: ConfigGuestIpTablesForProxy, IsRunningOrActive
Class Method Summary collapse
Class Method Details
.setup_proxying ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/vagrant-proxy/action.rb', line 12 def self. @setup_proxying ||= ::Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate b.use Call, IsRunningOrActive do |env1, b2| if env1[:result] # b2.use SetupProxyOnHost b2.use ConfigGuestIpTablesForProxy b2.use SSHRun end end end end |