# works with public one, but in that case simply use CurlDownloadStrategy.Ĭlass GitHubPrivateRepositoryDownloadStrategy GitHubPrivateRepositoryReleaseDownloadStrategy` to the URL section of # it lets you use a private GitHub repository for internal distribution. # strategy is suitable for corporate use just like S3DownloadStrategy, because # environment variables `HOMEBREW_GITHUB_API_TOKEN`) to sign the request. This download strategy uses GitHub access tokens (in the # `:using => GitHubPrivateRepositoryDownloadStrategy` to the URL section of # GitHubPrivateRepositoryDownloadStrategy downloads contents from GitHub # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # SERVICES LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # and/or other materials provided with the distribution. # this list of conditions and the following disclaimer in the documentation # * Redistributions in binary form must reproduce the above copyright notice, # list of conditions and the following disclaimer. # * Redistributions of source code must retain the above copyright notice, this # modification, are permitted provided that the following conditions are met: # Redistribution and use in source and binary forms, with or without # Copyright (c) 2009-present, Homebrew contributors # This is based on the following, with minor fixes. # Add `require_relative "lib/private_strategy"` to your formula. # Save this file as `lib/private_strategy.rb`
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |