Sha256: f0cfca9cd1ce1c575f6e43c64d9cee0440e23eeb458823f0cf85464fed5b37b9

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

namespace :rs do
  desc "Alias cache:clear"
  task :cc do
    cache.clear
  end

  desc "Clear rightscale's server list cache"
  namespace :cache do
    task :clear do
      logger.debug("Clear cache all")
      logger.trace(Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/*").each {|f| f } || "")
      FileUtils.rm(Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/*"), {:force => true})
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cap-rightscale-0.6.3 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.6.2 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.6.1 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.6.0 lib/cap-rightscale/recipes/rightscale/cache.rb