Sha256: 02d57202c8df691037ac7245cf5bc78208a0f4b8e02b29ae1cd8ce722ad1f17e
Contents?: true
Size: 461 Bytes
Versions: 5
Compression:
Stored size: 461 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']}-*/#{stage}*") prefix = stage ? "#{stage}" : "default" FileUtils.rm(Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/#{prefix}*"), {:force => true}) end end end
Version data entries
5 entries across 5 versions & 1 rubygems