Class: Babushka::SrcHelper

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

Class Method Summary collapse

Methods inherited from PkgHelper

all_manager_keys, bin_path, handle_install!, has?, install!, manager_dep, pkg_binary, 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

.install_src!(cmd, opts = {}) ⇒ Object


6
7
8
# File 'lib/babushka/pkg_helpers/src_helper.rb', line 6

def install_src! cmd, opts = {}
  log_shell "install", cmd, :sudo => (opts[:sudo] || should_sudo?)
end

.pkg_typeObject


4
# File 'lib/babushka/pkg_helpers/src_helper.rb', line 4

def pkg_type; :src end

.prefixObject


10
11
12
# File 'lib/babushka/pkg_helpers/src_helper.rb', line 10

def prefix
  '/usr/local'
end