Class: Moku::Pipeline::Caches

Inherits:
Moku::Pipeline show all
Defined in:
lib/moku/pipeline/caches.rb

Overview

Retrieve and print the list of cached instances

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Moku::Pipeline

for

Class Method Details

.handles?(command) ⇒ Boolean

Returns:

  • (Boolean)

13
14
15
# File 'lib/moku/pipeline/caches.rb', line 13

def self.handles?(command)
  command.action == :caches
end

Instance Method Details

#callObject


17
18
19
20
21
# File 'lib/moku/pipeline/caches.rb', line 17

def call
  # Avoid calling step because the logger will be used for output,
  # and calling step would make it less clean.
  print_caches
end