Class: VagrantPlugins::PackageCache::Action::MountCacheFolder

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-package_cache/action/mount_cache_folder.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ MountCacheFolder

Returns a new instance of MountCacheFolder.



6
7
8
9
# File 'lib/vagrant-package_cache/action/mount_cache_folder.rb', line 6

def initialize(app, env)
  @app = app
  @env = env
end

Instance Method Details

#call(env) ⇒ Object



11
12
13
14
15
16
# File 'lib/vagrant-package_cache/action/mount_cache_folder.rb', line 11

def call(env)
  log.info "Adding PackageCache sync folder"
  config.vm.synced_folder host_apt_cache_dir, guest_apt_cache_dir

  @app.call(env)
end