class Barista::Behaviors::Omnibus::Packagers::Rpm
- Barista::Behaviors::Omnibus::Packagers::Rpm
- Barista::Behaviors::Omnibus::Packagers::Base
- Reference
- Object
Defined in:
barista/behaviors/omnibus/packagers/rpm.crConstant 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
- #build : Nil
- #build_filepath(path)
- #category(val : String | Nil = nil)
- #compression
- #compression_level(val : Int32 | Nil = nil)
- #compression_type(val : Symbol | Nil = nil)
- #config_files
- #configure : Nil
- #create_rpm_file
- #dist_tag(val : String | Nil = nil)
- #filesystem_directories
- #id : Symbol
- #license(val : String | Nil = nil)
- #license(*args, **options)
- #license(*args, **options, &)
- #list_files
- #mark_filesystem_directories(fsdir)
- #package_name
- #priority(val : String | Nil = nil)
- #query
- #rpm_file
- #rpm_safe(string)
- #safe_architecture
-
#safe_version : String
TODO revisit to follow omnibus https://github.com/chef/omnibus/blob/main/lib/omnibus/packagers/rpm.rb#L597
- #signing_passphrase(val : Union(String, Nil) | Nil = nil)
- #spec_file
- #summary
- #supported? : Bool
- #vendor(val : String | Nil = nil)
-
#with_rpm_signing(&block : String -> String) : String
TODO Revisit when testing
- #write_rpm_spec
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_erroron_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
Class Method Detail
Instance Method Detail
def safe_version : String
#
TODO revisit to follow omnibus https://github.com/chef/omnibus/blob/main/lib/omnibus/packagers/rpm.rb#L597