Class: Gemstar::Commands::Cache

Inherits:
Command
  • Object
show all
Defined in:
lib/gemstar/commands/cache.rb

Instance Method Summary collapse

Methods inherited from Command

#initialize, #run

Constructor Details

This class inherits a constructor from Gemstar::Commands::Command

Instance Method Details

#flushObject



6
7
8
9
# File 'lib/gemstar/commands/cache.rb', line 6

def flush
  removed_entries = Gemstar::Cache.flush!
  puts "Flushed #{removed_entries} cache entr#{removed_entries == 1 ? 'y' : 'ies'} from #{Gemstar::Cache::CACHE_DIR}"
end