Class: Gitlab::Ci::Build::Credentials::Registry::GitlabRegistry
- Defined in:
- lib/gitlab/ci/build/credentials/registry/gitlab_registry.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(build) ⇒ GitlabRegistry
constructor
A new instance of GitlabRegistry.
- #type ⇒ Object
- #url ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(build) ⇒ GitlabRegistry
Returns a new instance of GitlabRegistry.
11 12 13 14 |
# File 'lib/gitlab/ci/build/credentials/registry/gitlab_registry.rb', line 11 def initialize(build) @username = Gitlab::Auth::CI_JOB_USER @password = build.token end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
9 10 11 |
# File 'lib/gitlab/ci/build/credentials/registry/gitlab_registry.rb', line 9 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
9 10 11 |
# File 'lib/gitlab/ci/build/credentials/registry/gitlab_registry.rb', line 9 def username @username end |