Class: Pkgr::Distributions::Ubuntu
- Defined in:
- lib/pkgr/distributions/ubuntu.rb
Overview
Contains the various components required to make a packaged app integrate well with a Ubuntu system.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#release ⇒ Object
Keep everything.
- #runner ⇒ Object
- #templates ⇒ Object
Methods inherited from Debian
#debconfig, #debtemplates, #fpm_command, #installer_dependencies, #package_install_command, #package_test_command, #verify
Methods inherited from Base
#build_dependencies, #buildpacks, #check, #crons_dir, #default_buildpack_list, #dependencies, #initialize, #initializers_for, #installer_dependencies, #os, #package_install_command, #package_test_command, #postinstall_file, #postuninstall_file, #preinstall_file, #preuninstall_file, #slug, #target, #verify
Constructor Details
This class inherits a constructor from Pkgr::Distributions::Base
Instance Method Details
#release ⇒ Object
Keep everything
8 9 10 |
# File 'lib/pkgr/distributions/ubuntu.rb', line 8 def release @release end |
#runner ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/pkgr/distributions/ubuntu.rb', line 12 def runner @runner ||= case release when /^12.04/, /^14.04/ Runner.new("upstart", "1.5", "initctl") else Runner.new("systemd", "default", "systemctl") end end |
#templates ⇒ Object
21 22 23 24 25 |
# File 'lib/pkgr/distributions/ubuntu.rb', line 21 def templates list = super list.push Templates::DirTemplate.new("etc/init") list end |