Sha256: bac0009a13ea5df133167690c9b22c9546c7fef65733e8e3a360cdfd6c348b80

Contents?: true

Size: 376 Bytes

Versions: 5

Compression:

Stored size: 376 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
      puts "Clear cache all"
      pp Dir.glob("#{Dir.tmpdir}/cap-rightscale-*/#{stage}*")
      FileUtils.rm(Dir.glob("#{Dir.tmpdir}/cap-rightscale-*/#{stage}*"), {:force => true})
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cap-rightscale-0.0.12 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.0.11 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.0.10 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.0.9 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.0.8 lib/cap-rightscale/recipes/rightscale/cache.rb