Class: Luban::Deployment::Packages::Ruby
- Inherits:
-
Luban::Deployment::Package::Base
- Object
- CLI::Command
- Command
- Luban::Deployment::Package::Base
- Luban::Deployment::Packages::Ruby
- Defined in:
- lib/luban/deployment/packages/ruby.rb
Defined Under Namespace
Classes: Installer
Constant Summary
Constants included from Command::Tasks::Install
Command::Tasks::Install::Actions
Constants included from Luban::Deployment::Parameters::General
Luban::Deployment::Parameters::General::DefaultLubanRootPath
Instance Attribute Summary
Attributes inherited from Luban::Deployment::Package::Base
Attributes included from Helpers::Configuration
Class Method Summary collapse
Methods inherited from Luban::Deployment::Package::Base
apply_to, #binstubs, #cleanup, dependencies, #find_application, #find_project, #has_version?, inherited, #install, #install_all, package_class, #package_options, required_packages_for, #show_current, #show_summary, #uninstall, #uninstall!, #uninstall_all, #update_package_options, #versions, #whence, #which, worker_class
Methods included from Command::Tasks::Install
Methods included from Luban::Deployment::Parameters::Base
Methods inherited from Command
#base_templates_path, #controllable?, #default_templates, default_worker_class, #deployable?, dispatch_task, #display_name, #installable?, #run_task, #task, worker_class
Methods included from Luban::Deployment::Parameters::General
Methods included from Helpers::Configuration
#ask, #default_templates_paths, #fetch, #find_template_file, #load_configuration_file, #primary, #release_roles, #role, #roles, #server, #set, #set_default, #syntax_error?
Class Method Details
.decompose_version(version) ⇒ Object
54 55 56 57 58 59 |
# File 'lib/luban/deployment/packages/ruby.rb', line 54 def self.decompose_version(version) major_version, patch_level = version.split('-') patch_level = '' if patch_level.nil? patch_level = $1 if patch_level.match(/^p(\d+)$/) { major_version: major_version, patch_level: patch_level } end |