Class: Wco::ApplianceTmpl

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/wco/appliance_tmpl.rb

Constant Summary collapse

KIND_CORPHOME1 =
'corphome1'
KIND_DRUPAL =
'drupal'
KIND_HELLOWORLD =
'helloworld'
KINDS =

KINDS = [ ‘smt’, ‘emailcrm’, KIND_CORPHOME1, KIND_HELLOWORLD, KIND_DRUPAL,

'mautic', 'matomo',
'irowor', 'eCommerce' ]
[ KIND_HELLOWORLD ]

Class Method Summary collapse

Class Method Details

.latest_of(kind) ⇒ Object



31
32
33
# File 'lib/wco/appliance_tmpl.rb', line 31

def self.latest_of kind
  where({ kind: kind }).order_by({ version: :desc }).first
end