Class: MM::Console::SimpleCommand::CleanCache
- Inherits:
-
Object
- Object
- MM::Console::SimpleCommand::CleanCache
- Includes:
- Base
- Defined in:
- lib/mm/console/simple_command/clean_cache.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Base
Class Method Details
.doc(runtime) ⇒ Object
11 12 13 14 |
# File 'lib/mm/console/simple_command/clean_cache.rb', line 11 def self.doc(runtime) names = runtime[:api].instance_variable_names.collect{|n| n.gsub(/@/, '').titleize} - ['Runtime'] "clean current cached resource objects: #{names.empty? ? '(no object cached)' : names.join(", ")}" end |
.keys ⇒ Object
7 8 9 |
# File 'lib/mm/console/simple_command/clean_cache.rb', line 7 def self.keys ['clean_cache'] end |
Instance Method Details
#execute(runtime) ⇒ Object
16 17 18 |
# File 'lib/mm/console/simple_command/clean_cache.rb', line 16 def execute(runtime) runtime[:api] = runtime[:api].renew end |