Class: Gitlab::Ci::Build::Credentials::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/build/credentials/factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(build) ⇒ Factory

Returns a new instance of Factory.


8
9
10
# File 'lib/gitlab/ci/build/credentials/factory.rb', line 8

def initialize(build)
  @build = build
end

Instance Method Details

#create!Object


12
13
14
# File 'lib/gitlab/ci/build/credentials/factory.rb', line 12

def create!
  credentials.select(&:valid?)
end