Class: Vagrant::LXC::Action::Disconnect
- Inherits:
-
Object
- Object
- Vagrant::LXC::Action::Disconnect
- Defined in:
- lib/vagrant-lxc/action/disconnect.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Disconnect
constructor
A new instance of Disconnect.
Constructor Details
#initialize(app, env) ⇒ Disconnect
Returns a new instance of Disconnect.
5 6 7 |
# File 'lib/vagrant-lxc/action/disconnect.rb', line 5 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/vagrant-lxc/action/disconnect.rb', line 9 def call(env) @app.call env # FIXME: Vagrant >= 1.1.3 should not need this # https://github.com/mitchellh/vagrant/compare/715539eac30bc9ae62ddbb6337d13f036f7b774d...ec1bae0#L2R128 env[:machine].instance_variable_set(:@communicator, nil) end |