diff options
| author | Jack Nagel | 2014-12-06 12:29:15 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-06 15:02:48 -0500 |
| commit | 6cfc44c5a9361aff51d75ead644abbcb4e9130c2 (patch) | |
| tree | ea13b776b87e6c199ab5f9e1fec67adf622fe623 /Library/Homebrew | |
| parent | 07ca45c7befa780d8ef56cd8c28b82eb52069335 (diff) | |
| download | homebrew-6cfc44c5a9361aff51d75ead644abbcb4e9130c2.tar.bz2 | |
Make repo_valid? private
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index ad2cb0e15..7482788ba 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -352,10 +352,6 @@ class S3DownloadStrategy < CurlDownloadStrategy end class SubversionDownloadStrategy < VCSDownloadStrategy - def repo_valid? - @clone.join(".svn").directory? - end - def repo_url `svn info '#{@clone}' 2>/dev/null`.strip[/^URL: (.+)$/, 1] end @@ -428,6 +424,10 @@ class SubversionDownloadStrategy < VCSDownloadStrategy def cache_tag head? ? "svn-HEAD" : "svn" end + + def repo_valid? + @clone.join(".svn").directory? + end end StrictSubversionDownloadStrategy = SubversionDownloadStrategy @@ -642,10 +642,6 @@ class MercurialDownloadStrategy < VCSDownloadStrategy end end - def repo_valid? - @clone.join(".hg").directory? - end - def clone_repo url = @url.sub(%r[^hg://], '') safe_system hgpath, 'clone', url, @clone @@ -669,6 +665,10 @@ class MercurialDownloadStrategy < VCSDownloadStrategy "hg" end + def repo_valid? + @clone.join(".hg").directory? + end + def hgpath @path ||= %W[ #{which("hg")} @@ -679,10 +679,6 @@ class MercurialDownloadStrategy < VCSDownloadStrategy end class BazaarDownloadStrategy < VCSDownloadStrategy - def repo_valid? - @clone.join(".bzr").directory? - end - def fetch ohai "Cloning #{@url}" @@ -717,6 +713,10 @@ class BazaarDownloadStrategy < VCSDownloadStrategy "bzr" end + def repo_valid? + @clone.join(".bzr").directory? + end + def bzrpath @path ||= %W[ #{which("bzr")} |
