Permalink
Browse files

rake clear

  • Loading branch information...
1 parent 8653495 commit dc2648837f5cf91b78a3f07480c9ac9995cfcb12 @mislav committed Aug 30, 2011
Showing with 7 additions and 5 deletions.
  1. +1 −0 Gemfile
  2. +2 −0 Gemfile.lock
  3. +4 −5 Rakefile
View
@@ -23,3 +23,4 @@ gem 'bson_ext'
gem 'faraday-stack' #, :path => '/Users/mislav/Projects/faraday-stack'
gem 'choices'
gem 'addressable'
+gem 'rake'
View
@@ -41,6 +41,7 @@ GEM
mongo_ext (0.19.3)
multipart-post (1.1.2)
rack (1.3.0)
+ rake (0.9.2)
ruby-debug (0.10.4)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.4.0)
@@ -86,6 +87,7 @@ DEPENDENCIES
indextank
mingo
mongo_ext
+ rake
ruby-debug
ruby-debug19
shotgun
View
@@ -1,10 +1,9 @@
task :app do
- $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
- $LOAD_PATH.unshift File.dirname($LOAD_PATH.first)
+ $LOAD_PATH.unshift File.expand_path('..', __FILE__)
require 'app'
end
task :clear => :app do
- items = CachedInstagram.cache.clear
- puts "#{items.size} removed"
-end
+ require 'fileutils'
+ FileUtils.rm_r Instagram.cache.cache_path, :verbose => true
+end

0 comments on commit dc26488

Please sign in to comment.