Class: Babushka::BinPortsHelper

Inherits:
PkgHelper show all
Defined in:
lib/babushka/pkg_helpers/binports_helper.rb

Class Method Summary collapse

Methods inherited from PkgHelper

all_manager_keys, bin_path, handle_install!, has?, install!, manager_dep, prefix, present?, should_sudo?, update_pkg_lists, update_pkg_lists_if_required

Methods included from ShellHelpers

cmd_dir, current_username, log_shell, login_shell, raw_shell, shell, shell!, shell?, shell_cmd, sudo, which

Methods included from LogHelpers

debug, deprecated!, log, log_block, log_error, log_ok, log_stderr, log_warn, removed!

Class Method Details

.manager_keyObject


16
# File 'lib/babushka/pkg_helpers/binports_helper.rb', line 16

def manager_key; :binports end

.pkg_binaryObject

Regarding FreeBSD binary packages the following should be noted:

pkg_add uses PACKAGESITE and PACKAGEROOT environment variables
to calculate the URL to download packages from.

If you're using outdated FreeBSD RELEASE branch (like 6.2-release)
that does not have anymore it's public package repository, please
either consider to move to the STABLE one (like 6-release)
or set PACKAGESITE var to point to appropriate package repository.

13
# File 'lib/babushka/pkg_helpers/binports_helper.rb', line 13

def pkg_binary; 'pkg_add' end

.pkg_cmdObject


14
# File 'lib/babushka/pkg_helpers/binports_helper.rb', line 14

def pkg_cmd; "#{pkg_binary} -r" end

.pkg_typeObject


15
# File 'lib/babushka/pkg_helpers/binports_helper.rb', line 15

def pkg_type; :tbz end