Class: UffizziCore::Credential

Inherits:
ApplicationRecord show all
Includes:
AASM, CredentialRepo
Defined in:
app/models/uffizzi_core/credential.rb

Defined Under Namespace

Classes: Amazon, Azure, DockerHub, Github, GithubContainerRegistry, Google

Instance Method Summary collapse

Instance Method Details

#amazon?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'app/models/uffizzi_core/credential.rb', line 45

def amazon?
  type == UffizziCore::Credential::Amazon.name
end

#azure?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'app/models/uffizzi_core/credential.rb', line 37

def azure?
  type == UffizziCore::Credential::Azure.name
end

#docker_hub?Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


41
42
43
# File 'app/models/uffizzi_core/credential.rb', line 41

def google?
  type == UffizziCore::Credential::Google.name
end