Sha256: c642a0c9545afb3bbdce1d41c270d8562a0795e14fc66082dba19ff9fbb6de81

Contents?: true

Size: 464 Bytes

Versions: 11

Compression:

Stored size: 464 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")
      prefix = ENV['STAGE'] ? ENV['STAGE'] : ""
      pp Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/#{prefix}*")
      FileUtils.rm(Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/#{prefix}*"), {:force => true})
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cap-rightscale-0.4.6 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.4.5 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.4.4 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.4.3 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.4.2 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.4.1 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.4.0 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.13 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.12 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.11 lib/cap-rightscale/recipes/rightscale/cache.rb
cap-rightscale-0.3.10 lib/cap-rightscale/recipes/rightscale/cache.rb