Class: UffizziCore::Credential
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- UffizziCore::Credential
- Includes:
- AASM, CredentialRepo
- Defined in:
- app/models/uffizzi_core/credential.rb
Direct Known Subclasses
Api::Cli::V1::Account::Credential::CreateForm, Amazon, Azure, DockerHub, Github, GithubContainerRegistry, Google
Defined Under Namespace
Classes: Amazon, Azure, DockerHub, Github, GithubContainerRegistry, Google
Instance Method Summary collapse
- #amazon? ⇒ Boolean
- #azure? ⇒ Boolean
- #docker_hub? ⇒ Boolean
- #github_container_registry? ⇒ Boolean
- #google? ⇒ Boolean
Instance Method Details
#amazon? ⇒ Boolean
45 46 47 |
# File 'app/models/uffizzi_core/credential.rb', line 45 def amazon? type == UffizziCore::Credential::Amazon.name end |
#azure? ⇒ Boolean
37 38 39 |
# File 'app/models/uffizzi_core/credential.rb', line 37 def azure? type == UffizziCore::Credential::Azure.name end |
#docker_hub? ⇒ Boolean
33 34 35 |
# File 'app/models/uffizzi_core/credential.rb', line 33 def docker_hub? type == UffizziCore::Credential::DockerHub.name end |
#github_container_registry? ⇒ Boolean
29 30 31 |
# File 'app/models/uffizzi_core/credential.rb', line 29 def github_container_registry? type == UffizziCore::Credential::GithubContainerRegistry.name end |
#google? ⇒ Boolean
41 42 43 |
# File 'app/models/uffizzi_core/credential.rb', line 41 def google? type == UffizziCore::Credential::Google.name end |