Class: UffizziCore::ActivityItem
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- UffizziCore::ActivityItem
- Includes:
- ActivityItemRepo
- Defined in:
- app/models/uffizzi_core/activity_item.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Docker, Github, MemoryLimit
Instance Method Summary collapse
Instance Method Details
#docker? ⇒ Boolean
40 41 42 |
# File 'app/models/uffizzi_core/activity_item.rb', line 40 def docker? type == UffizziCore::ActivityItem::Docker.name end |
#full_image ⇒ Object
48 49 50 51 52 |
# File 'app/models/uffizzi_core/activity_item.rb', line 48 def full_image return "#{image}:#{tag}" if docker? '' end |
#image ⇒ Object
44 45 46 |
# File 'app/models/uffizzi_core/activity_item.rb', line 44 def image [namespace, name].compact.join('/') end |