Class: VagrantLXD::Action::Package
- Inherits:
-
Object
- Object
- VagrantLXD::Action::Package
- Includes:
- FileUtils
- Defined in:
- lib/vagrant-lxd/action.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(app, env) ⇒ Package
Returns a new instance of Package.
148 149 150 151 |
# File 'lib/vagrant-lxd/action.rb', line 148 def initialize(app, env) @app = app @env = env end |
Instance Method Details
#call(env) ⇒ Object
153 154 155 156 157 158 |
# File 'lib/vagrant-lxd/action.rb', line 153 def call(env) env['package.directory'] = env[:machine_package] @app.call(env) ensure rm_rf(env[:machine_package]) end |