Class: Babushka::BinPkgSrcHelper

Inherits:
PkgHelper show all
Defined in:
lib/babushka/pkg_helpers/binpkgsrc_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

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


10
# File 'lib/babushka/pkg_helpers/binpkgsrc_helper.rb', line 10

def manager_key; :binpkgsrc end

.pkg_binaryObject

Note that with pkg_radd it is possible to override the default repository using PKG_PATH environment variable. See man 1 pkg_add.


7
# File 'lib/babushka/pkg_helpers/binpkgsrc_helper.rb', line 7

def pkg_binary; 'pkg_radd' end

.pkg_cmdObject


8
# File 'lib/babushka/pkg_helpers/binpkgsrc_helper.rb', line 8

def pkg_cmd; pkg_binary end

.pkg_typeObject


9
# File 'lib/babushka/pkg_helpers/binpkgsrc_helper.rb', line 9

def pkg_type; :pkg end

.update_pkg_lists_if_requiredObject

TODO can this be removed?


13
14
15
16
17
18
19
# File 'lib/babushka/pkg_helpers/binpkgsrc_helper.rb', line 13

def update_pkg_lists_if_required
  if !File.exists? pkg_list_dir
    update_pkg_lists "Looks like pkg summary hasn't been fetched on this system yet. Updating"
  else
    super
  end
end