Class: CoreTap
- Defined in:
- Library/Homebrew/tap.rb,
Library/Homebrew/extend/os/linux/tap.rb
Overview
typed: true frozen_string_literal: true
Constant Summary
Constants inherited from Tap
Instance Attribute Summary
Attributes inherited from Tap
#full_name, #name, #path, #repo, #user
Class Method Summary collapse
Instance Method Summary collapse
-
#install(full_clone: true, quiet: false, clone_target: nil, force_auto_update: nil) ⇒ Object
CoreTap never allows shallow clones (on request from GitHub).
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
Class Method Details
.ensure_installed! ⇒ Object
618 619 620 621 622 |
# File 'Library/Homebrew/tap.rb', line 618 def self.ensure_installed! return if instance.installed? safe_system HOMEBREW_BREW_FILE, "tap", instance.name end |
.instance ⇒ Object
614 615 616 |
# File 'Library/Homebrew/tap.rb', line 614 def self.instance @instance ||= new end |
Instance Method Details
#install(full_clone: true, quiet: false, clone_target: nil, force_auto_update: nil) ⇒ Object
CoreTap never allows shallow clones (on request from GitHub).
625 626 627 628 629 630 631 632 633 |
# File 'Library/Homebrew/tap.rb', line 625 def install(full_clone: true, quiet: false, clone_target: nil, force_auto_update: nil) raise "Shallow clones are not supported for homebrew-core!" unless full_clone 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(full_clone: full_clone, quiet: quiet, clone_target: remote, force_auto_update: force_auto_update) end |