Class: CoreTap

Inherits:
Tap
  • Object
show all
Defined in:
Library/Homebrew/tap.rb,
Library/Homebrew/extend/os/linux/tap.rb

Overview

A specialized Tap class for the core formulae.

Constant Summary

Constants inherited from Tap

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, #formula_files, #formula_names, from_path, #git?, #git_branch, #git_head, #git_last_commit, #git_last_commit_date, #git_short_head, #installed?, #issues_url, #link_completions_and_manpages, names, #official?, #potential_formula_dirs, #private?, #remote, #repo_var, #shallow?, #to_hash, #to_s, #version_string

Methods included from Cachable

#cache, #clear_cache

Class Method Details

.ensure_installed!Object


620
621
622
623
624
# File 'Library/Homebrew/tap.rb', line 620

def self.ensure_installed!
  return if instance.installed?

  safe_system HOMEBREW_BREW_FILE, "tap", instance.name
end

.instanceObject


616
617
618
# File 'Library/Homebrew/tap.rb', line 616

def self.instance
  @instance ||= new
end

Instance Method Details

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


626
627
628
629
630
# File 'Library/Homebrew/tap.rb', line 626

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