Class: Moku::Pipeline::Releases

Inherits:
Pipeline
  • Object
show all
Defined in:
lib/moku/pipeline/releases.rb

Overview

Print the release history

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pipeline

for, #initialize, register, registry

Constructor Details

This class inherits a constructor from Moku::Pipeline::Pipeline

Class Method Details

.handles?(command) ⇒ Boolean

Returns:

  • (Boolean)

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

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

Instance Method Details

#callObject


17
18
19
20
21
# File 'lib/moku/pipeline/releases.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_releases
end