Class: UffizziCore::Repo

Inherits:
ApplicationRecord show all
Extended by:
Enumerize
Includes:
RepoRepo
Defined in:
app/models/uffizzi_core/repo.rb

Defined Under Namespace

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

Instance Method Summary collapse

Instance Method Details

#azure?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/uffizzi_core/repo.rb', line 22

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

#docker_hub?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/uffizzi_core/repo.rb', line 18

def docker_hub?
  type == UffizziCore::Repo::DockerHub.name
end

#google?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'app/models/uffizzi_core/repo.rb', line 26

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