lib/cap-rightscale/recipes/rightscale/cache.rb in cap-rightscale-0.4.6 vs lib/cap-rightscale/recipes/rightscale/cache.rb in cap-rightscale-0.5.0

- old
+ new

@@ -1,16 +1,16 @@ -namespace :rightscale do +namespace :rs 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}*") + logger.trace(Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/#{prefix}*").each {|f| f } || "") FileUtils.rm(Dir.glob("#{Dir.tmpdir}/cap-rightscale-#{ENV['USER']}-*/#{prefix}*"), {:force => true}) end end end