Class: Pkgr::Distributions::Ubuntu

Inherits:
Debian show all
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

#config

Instance Method Summary collapse

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

#releaseObject

Keep everything



8
9
10
# File 'lib/pkgr/distributions/ubuntu.rb', line 8

def release
  @release
end

#runnerObject



12
13
14
15
16
17
18
19
# File 'lib/pkgr/distributions/ubuntu.rb', line 12

def runner
  @runner ||= case release
  when /^16.04/
    Runner.new("systemd", "default", "systemctl")
  else
    Runner.new("upstart", "1.5", "initctl")
  end
end

#templatesObject



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