Class: WcoHosting::ApplianceTmpl
- Inherits:
-
Object
- Object
- WcoHosting::ApplianceTmpl
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/wco_hosting/appliance_tmpl.rb
Constant Summary collapse
- KIND_CRM =
- 2023-12-08
-
These names are impossible to change already.
'crm'
- KIND_DRUPAL =
'drupal'
- KIND_HELLOWORLD =
'helloworld'
- KIND_IROWOR =
'irowor'
- KIND_JENKINS =
'jenkins'
- KIND_MATOMO =
'matomo'
- KIND_MOODLE =
'moodle'
- KIND_PRESTASHOP =
'prestashop'
- KIND_SMT =
'smt'
- KIND_WORDPRESS =
'wordpress'
- KINDS =
[ KIND_CRM, KIND_DRUPAL, KIND_HELLOWORLD, KIND_IROWOR, KIND_JENKINS, KIND_MATOMO, KIND_MOODLE, KIND_PRESTASHOP, KIND_SMT, KIND_WORDPRESS ]
Class Method Summary collapse
Class Method Details
.latest_of(kind) ⇒ Object
52 53 54 |
# File 'app/models/wco_hosting/appliance_tmpl.rb', line 52 def self.latest_of kind where({ kind: kind }).order_by({ version: :desc }).first end |