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