Class: CoreTap

Inherits:
Tap
  • Object
show all
Extended by:
T::Sig
Defined in:
extend/os/linux/tap.rb,
tap.rb

Overview

A specialized Tap class for the core formulae.

Constant Summary

Constants inherited from Tap

Tap::HOMEBREW_TAP_AUDIT_EXCEPTIONS_DIR, Tap::HOMEBREW_TAP_FORMULA_RENAMES_FILE, Tap::HOMEBREW_TAP_JSON_FILES, Tap::HOMEBREW_TAP_MIGRATIONS_FILE, Tap::HOMEBREW_TAP_PYPI_FORMULA_MAPPINGS, Tap::HOMEBREW_TAP_STYLE_EXCEPTIONS_DIR, Tap::TAP_DIRECTORY

Instance Attribute Summary

Attributes inherited from Tap

#full_name, #name, #path, #repo, #user

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Tap

#==, #cask_dir, #cask_files, #cask_tokens, #clear_cache, cmd_directories, #command_dir, #command_files, #config, #contents, #custom_remote?, default_cask_tap, #default_remote, each, fetch, #fix_remote_configuration, #formula_files, #formula_names, from_path, #git?, #git_branch, #git_head, #git_last_commit, install_default_cask_tap_if_necessary, #installed?, #issues_url, #link_completions_and_manpages, names, #official?, #potential_formula_dirs, #private?, #remote, #remote_repo, #repo_var, #shallow?, #to_hash, #to_s, untapped_official_taps

Methods included from Cachable

#cache, #clear_cache

Class Method Details

.ensure_installed!Object



732
733
734
735
736
# File 'tap.rb', line 732

def self.ensure_installed!
  return if instance.installed?

  safe_system HOMEBREW_BREW_FILE, "tap", instance.name
end

.instanceObject



728
729
730
# File 'tap.rb', line 728

def self.instance
  @instance ||= new
end

Instance Method Details

#install(quiet: false, clone_target: nil, force_auto_update: nil) ⇒ Object

CoreTap never allows shallow clones (on request from GitHub).



739
740
741
742
743
744
745
# File 'tap.rb', line 739

def install(quiet: false, clone_target: nil, force_auto_update: nil)
  remote = Homebrew::EnvConfig.core_git_remote
  if remote != default_remote
    $stderr.puts "HOMEBREW_CORE_GIT_REMOTE set: using #{remote} for Homebrew/core Git remote URL."
  end
  super(quiet: quiet, clone_target: remote, force_auto_update: force_auto_update)
end