Sha256: 48ae61515fa8fbd73f4bcda3b0acb30596f808266c4ec59bec241a9625f95001

Contents?: true

Size: 398 Bytes

Versions: 13

Compression:

Stored size: 398 Bytes

Contents

namespace :rightscale 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.info("Clear cache all")
      pp Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/*")
      FileUtils.rm(Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/*"), {:force => true})
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cap-rightscale-0.3.9 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.8 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.7 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.6 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.5 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.4 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.3 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.2 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.1 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.0 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.2.6 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.2.5 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.2.4 lib/cap-rightscale/recipes/rightscale/cache.rb