Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
34fc227f
Commit
34fc227f
authored
10 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of StandardLoader class
parent
b7ca3e33
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/formulary.rb
+3
-10
3 additions, 10 deletions
Library/Homebrew/formulary.rb
with
3 additions
and
10 deletions
Library/Homebrew/formulary.rb
+
3
−
10
View file @
34fc227f
...
...
@@ -102,13 +102,6 @@ class Formulary
end
end
# Loads formulae from Homebrew's provided Library
class
StandardLoader
<
FormulaLoader
def
initialize
name
,
path
=
Formula
.
path
(
name
)
super
end
end
class
AliasLoader
<
FormulaLoader
def
initialize
alias_path
path
=
alias_path
.
resolved_path
...
...
@@ -202,7 +195,7 @@ class Formulary
formula_with_that_name
=
Formula
.
path
(
ref
)
if
formula_with_that_name
.
file?
return
Standard
Loader
.
new
(
ref
,
formula_with_that_name
)
return
Formula
Loader
.
new
(
ref
,
formula_with_that_name
)
end
possible_alias
=
Pathname
.
new
(
"
#{
HOMEBREW_LIBRARY
}
/Aliases/
#{
ref
}
"
)
...
...
@@ -212,9 +205,9 @@ class Formulary
possible_cached_formula
=
Pathname
.
new
(
"
#{
HOMEBREW_CACHE_FORMULA
}
/
#{
ref
}
.rb"
)
if
possible_cached_formula
.
file?
return
Standard
Loader
.
new
(
ref
,
possible_cached_formula
)
return
Formula
Loader
.
new
(
ref
,
possible_cached_formula
)
end
return
Standard
Loader
.
new
(
ref
)
return
Formula
Loader
.
new
(
ref
,
Formula
.
path
(
ref
)
)
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment