Class: Vanagon::Platform::RPM::AIX

Inherits:
Vanagon::Platform::RPM show all
Defined in:
lib/vanagon/platform/rpm/aix.rb

Overview

AIX is special. This subclassing gives us the chance to define some sane defaults for aix without cluttering the main rpm class in if statements.

Constant Summary

Constants inherited from Vanagon::Platform

PLATFORM_REGEX, VERSION_REGEX

Instance Attribute Summary

Attributes inherited from Vanagon::Platform

#abs_resource_name, #architecture, #aws_ami, #aws_instance_type, #aws_key, #aws_key_name, #aws_region, #aws_shutdown_behavior, #aws_subnet_id, #aws_user_data, #aws_vpc_id, #brew, #build_dependencies, #build_hosts, #cflags, #codename, #copy, #cross_compiled, #defaultdir, #dist, #docker_image, #docker_run_args, #environment, #find, #install, #ldflags, #make, #mktemp, #name, #num_cores, #os_name, #os_version, #output_dir, #package_type, #patch, #platform_triple, #provisioning, #rpmbuild, #sed, #servicedir, #servicetype, #servicetypes, #settings, #shasum, #shell, #sort, #source_output_dir, #ssh_port, #tar, #target_user, #use_docker_exec, #valid_operators, #vmpooler_template

Instance Method Summary collapse

Methods inherited from Vanagon::Platform::RPM

#add_repository, #generate_package, #generate_packaging_artifacts, #output_dir, #package_name, #package_override, #source_output_dir

Methods inherited from Vanagon::Platform

#[], #add_build_repository, #add_group, #add_user, #generate_compiled_archive, #get_service_dir, #get_service_types, #is_aix?, #is_amazon?, #is_cisco_wrlinux?, #is_cross_compiled?, #is_cross_compiled_linux?, #is_deb?, #is_debian?, #is_el8?, #is_el?, #is_eos?, #is_fedora?, #is_fips?, #is_huaweios?, #is_linux?, #is_macos?, #is_osx?, #is_rpm?, #is_sles?, #is_solaris?, #is_ubuntu?, #is_unix?, #is_windows?, load_platform, #package_override, #provision_with, #validate_operator, #version_munger

Methods included from HashableAttributes

#to_hash, #to_json

Methods included from Utilities

#erb_file, #erb_string, #ex, #find_program_on_path, #get_md5sum, #get_sum, #http_request, #http_request_code, #http_request_generic, #local_command, #remote_ssh_command, #retry_with_timeout, #rsync_from, #rsync_to, #ssh_command

Constructor Details

#initialize(name) ⇒ Vanagon::Platform::RPM::AIX

Constructor. Sets up some defaults for the aix platform and calls the parent constructor

Parameters:

  • name (String)

    name of the platform



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/vanagon/platform/rpm/aix.rb', line 15

def initialize(name)
  @name = name
  @make = "/usr/bin/gmake"
  @tar = "/opt/freeware/bin/tar"
  @patch = "/opt/freeware/bin/patch"
  @sed = "/opt/freeware/bin/sed"
  @shasum = "/opt/freeware/bin/sha1sum"
  @num_cores = "lsdev -Cc processor |wc -l"
  @install = "/opt/freeware/bin/install"
  @rpmbuild = "/usr/bin/rpm"
  super(name)
end

Instance Method Details

#rpm_definesObject



7
8
9
# File 'lib/vanagon/platform/rpm/aix.rb', line 7

def rpm_defines
  %(--define '_topdir $(tempdir)/rpmbuild' )
end