Class: Moku::Pipeline::SetDefaultBranch

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

Overview

Set the default branch

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)

12
13
14
# File 'lib/moku/pipeline/set_default_branch.rb', line 12

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

Instance Method Details

#callObject


16
17
18
# File 'lib/moku/pipeline/set_default_branch.rb', line 16

def call
  step :set_default_branch
end