class Barista::Behaviors::Omnibus::Packagers::Pkg

Defined in:

barista/behaviors/omnibus/packagers/pkg.cr

Constant Summary

BG_TEMPLATE = Barista.project_file("/behaviors/omnibus/packagers/scripts/pkg/background.png")
DISTRIBUTION_TEMPLATE = Barista.project_file("/behaviors/omnibus/packagers/scripts/pkg/distribution.xml.hbs")
ENTITLEMENTS_TEMPLATE = Barista.project_file("/behaviors/omnibus/packagers/scripts/pkg/entitlements.plist.hbs")
LICENSE_TEMPLATE = Barista.project_file("/behaviors/omnibus/packagers/scripts/pkg/license.html.hbs")
SCRIPT_MAP = {:preinst => "preinstall", :postinst => "postinstall", :preinstall => "preinstall", :postinstall => "postinstall"}
WELCOME_TEMPLATE = Barista.project_file("/behaviors/omnibus/packagers/scripts/pkg/welcome.html.hbs")

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Barista::Behaviors::Omnibus::Packagers::Base

build : Nil build, cleanup cleanup, configure : Nil configure, exclusions exclusions, id : Symbol id, inclusions inclusions, install_dir(*args, **options)
install_dir(*args, **options, &)
install_dir
, package_name package_name, project : Barista::Behaviors::Omnibus::Project project, run run, safe_package_name : String safe_package_name, supported? : Bool supported?

Constructor methods inherited from class Barista::Behaviors::Omnibus::Packagers::Base

new(project : Barista::Behaviors::Omnibus::Project) new

Macros inherited from class Barista::Behaviors::Omnibus::Packagers::Base

gen_supported(cmd, regex_test) gen_supported

Instance methods inherited from module Barista::Behaviors::Software::Emittable

collect_error(arr : Array(String)) collect_error, collect_output(arr : Array(String)) collect_output, forward_error(&block : String -> ) forward_error, forward_output(&block : String -> ) forward_output, on_error
on_error(&block : String -> Nil)
on_error
, on_output
on_output(&block : String -> Nil)
on_output

Macros inherited from module Barista::Behaviors::Omnibus::Macros

gen_collection_method(name, var_name, type) gen_collection_method, gen_method(name, type, &block) gen_method

Instance methods inherited from module Barista::Behaviors::Software::OS::Information

kernel : Kernel.class kernel

Instance methods inherited from module Barista::Behaviors::Software::OS::PlatformFamily

aix? aix?, amazon? amazon?, arch? arch?, debian? debian?, fedora? fedora?, freebsd? freebsd?, gentoo? gentoo?, macos? macos?, netbsd? netbsd?, openbsd? openbsd?, platform_short_name platform_short_name, redhat_based? redhat_based?, rhel6? rhel6?, rhel7? rhel7?, rhel8? rhel8?, rhel? rhel?, rpm_based? rpm_based?, smartos? smartos?, solaris? solaris?, suse? suse?

Instance methods inherited from module Barista::Behaviors::Software::OS::Linux::Information

memory memory, platform platform

Constructor Detail

def self.new(project : Barista::Behaviors::Omnibus::Project) #

[View source]

Class Method Detail

def self.supported? : Bool #

[View source]

Instance Method Detail

def build : Nil #

[View source]
def build_component_pkg #

[View source]
def build_product_pkg #

[View source]
def codesigning_identity(val : Union(String, Nil) | Nil = nil) #

[View source]
def component_pkg #

[View source]
def configure : Nil #

[View source]
def distribution_template(val : String | Nil = nil) #

[View source]
def entitlements(val : Union(Array(String), Nil) | Nil = nil) #

[View source]
def entitlements_path : String #

[View source]
def final_pkg #

[View source]
def find_linked_libs(file_path) : Array(String) #

[View source]
def id : Symbol #

[View source]
def identifier(val : Union(String, Nil) | Nil = nil) #

[View source]
def image(val : String | Nil = nil) #

[View source]
def is_binary?(bin) : Bool #

[View source]
def license(*args, **options) #

[View source]
def license(*args, **options, &) #

[View source]
def license_template(val : String | Nil = nil) #

[View source]
def list_files #

[View source]
def package_name #

[View source]
def query #

[View source]
def resources_path #

[View source]
def safe_architecture : String #

[View source]
def safe_base_package_name : String #

[View source]
def safe_build_iteration #

[View source]
def safe_identifier #

[View source]
def safe_version #

[View source]
def scripts_path #

[View source]
def sign(bin, hardened_runtime = true) #

[View source]
def sign_software(hardened_runtime = true) #

[View source]
def signing_identity(val : Union(String, Nil) | Nil = nil) #

[View source]
def staging_path #

[View source]
def supported? : Bool #

[View source]
def welcome_template(val : String | Nil = nil) #

[View source]
def write_distribution_file #

[View source]
def write_entitlements_file #

[View source]
def write_scripts #

[View source]