class Barista::Behaviors::Omnibus::Packagers::Rpm

Defined in:

barista/behaviors/omnibus/packagers/rpm.cr

Constant Summary

FILESYSTEM_LIST = Barista.project_file("/behaviors/omnibus/packagers/scripts/rpm/filesystem_list")
SCRIPT_MAP = {:preinst => "pre", :postinst => "post", :prerm => "preun", :postrm => "postun", :pre => "pre", :post => "post", :preun => "preun", :postun => "postun", :verifyscript => "verifyscript", :pretrans => "pretrans", :posttrans => "posttrans"}
SIGNING_TEMPLATE = Barista.project_file("/behaviors/omnibus/packagers/scripts/rpm/signing.hbs")
SPEC_TEMPLATE = Barista.project_file("/behaviors/omnibus/packagers/scripts/rpm/spec.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_filepath(path) #

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

[View source]
def compression #

[View source]
def compression_level(val : Int32 | Nil = nil) #

[View source]
def compression_type(val : Symbol | Nil = nil) #

[View source]
def config_files #

[View source]
def configure : Nil #

[View source]
def create_rpm_file #

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

[View source]
def filesystem_directories #

[View source]
def id : Symbol #

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

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

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

[View source]
def list_files #

[View source]
def mark_filesystem_directories(fsdir) #

[View source]
def package_name #

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

[View source]
def query #

[View source]
def rpm_file #

[View source]
def rpm_safe(string) #

[View source]
def safe_architecture #

[View source]
def safe_version : String #

TODO revisit to follow omnibus https://github.com/chef/omnibus/blob/main/lib/omnibus/packagers/rpm.rb#L597


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

[View source]
def spec_file #

[View source]
def summary #

[View source]
def supported? : Bool #

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

[View source]
def with_rpm_signing(&block : String -> String) : String #

TODO Revisit when testing


[View source]
def write_rpm_spec #

[View source]