Class: UffizziCore::ActivityItem

Inherits:
ApplicationRecord show all
Includes:
ActivityItemRepo
Defined in:
app/models/uffizzi_core/activity_item.rb

Direct Known Subclasses

Docker, Github, MemoryLimit

Defined Under Namespace

Classes: Docker, Github, MemoryLimit

Instance Method Summary collapse

Instance Method Details

#docker?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'app/models/uffizzi_core/activity_item.rb', line 40

def docker?
  type == UffizziCore::ActivityItem::Docker.name
end

#full_imageObject



48
49
50
51
52
# File 'app/models/uffizzi_core/activity_item.rb', line 48

def full_image
  return "#{image}:#{tag}" if docker?

  ''
end

#imageObject



44
45
46
# File 'app/models/uffizzi_core/activity_item.rb', line 44

def image
  [namespace, name].compact.join('/')
end