lib/cap-rightscale/recipes/rightscale/cache.rb in cap-rightscale-0.0.7 vs lib/cap-rightscale/recipes/rightscale/cache.rb in cap-rightscale-0.0.8
- old
+ new
@@ -1,14 +1,15 @@
-desc "Alias cache:clear"
namespace :rightscale do
- task :rightscale do
- rightscale.cache.clear
+ 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