Sha256: 6fc81cfaae76d57eb7e5f57f1ae9c986f6f58a164f1e8d976e8ce5d0308e3c05

Contents?: true

Size: 451 Bytes

Versions: 19

Compression:

Stored size: 451 Bytes

Contents

module VagrantPlugins
module CORL
module Action
class DeleteCache < BaseAction

  def call(env)
    super do
      @app.call env
      
      env[:ui].info I18n.t("corl.vagrant.actions.delete_cache.start")
      
      # Check for saved image
      box     = node.cache_setting(:box)
      box_url = node.cache_setting(:box_url)
      
      # Clear cache unless saved image
      node.clear_cache unless box && box_url
    end
  end
end
end
end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
corl-0.5.18 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.17 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.16 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.15 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.14 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.13 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.12 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.11 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.10 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.9 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.8 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.7 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.6 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.5 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.4 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.3 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.2 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.1 lib/core/vagrant/actions/delete_cache.rb
corl-0.5.0 lib/core/vagrant/actions/delete_cache.rb