Class: Luban::Deployment::Packages::Mysql

Inherits:
Service::Base
  • Object
show all
Defined in:
lib/luban/deployment/packages/mysql/base.rb,
lib/luban/deployment/packages/mysql/paths.rb,
lib/luban/deployment/packages/mysql/installer.rb,
lib/luban/deployment/packages/mysql/controller.rb,
lib/luban/deployment/packages/mysql/configurator.rb

Defined Under Namespace

Modules: Paths Classes: Configurator, Controller, Installer

Class Method Summary collapse

Class Method Details

.decompose_version(version) ⇒ Object



5
6
7
8
# File 'lib/luban/deployment/packages/mysql/base.rb', line 5

def self.decompose_version(version)
  vers = version.split('.')
  { major_version: "#{vers[0]}.#{vers[1]}", patch_level: vers[2] }
end