Class: Gitlab::Ci::Pipeline::Chain::EnsureResourceGroups

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/ci/pipeline/chain/ensure_resource_groups.rb

Instance Attribute Summary

Attributes inherited from Base

#command, #config, #pipeline

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Pipeline::Chain::Base

Instance Method Details

#break?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/gitlab/ci/pipeline/chain/ensure_resource_groups.rb', line 12

def break?
  false
end

#perform!Object


8
9
10
# File 'lib/gitlab/ci/pipeline/chain/ensure_resource_groups.rb', line 8

def perform!
  pipeline.stages.map(&:statuses).flatten.each(&method(:ensure_resource_group))
end