Class: Babushka::BinPkgSrcHelper
- Defined in:
- lib/babushka/pkg_helpers/binpkgsrc_helper.rb
Class Method Summary collapse
- .manager_key ⇒ Object
-
.pkg_binary ⇒ Object
Note that with pkg_radd it is possible to override the default repository using PKG_PATH environment variable.
- .pkg_cmd ⇒ Object
- .pkg_type ⇒ Object
-
.update_pkg_lists_if_required ⇒ Object
TODO can this be removed?.
Methods inherited from PkgHelper
all_manager_keys, bin_path, cmd_in_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_key ⇒ Object
10 |
# File 'lib/babushka/pkg_helpers/binpkgsrc_helper.rb', line 10 def manager_key; :binpkgsrc end |
.pkg_binary ⇒ Object
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_cmd ⇒ Object
8 |
# File 'lib/babushka/pkg_helpers/binpkgsrc_helper.rb', line 8 def pkg_cmd; pkg_binary end |
.pkg_type ⇒ Object
9 |
# File 'lib/babushka/pkg_helpers/binpkgsrc_helper.rb', line 9 def pkg_type; :pkg end |
.update_pkg_lists_if_required ⇒ Object
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 |