-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Software `source` method now supports the `authorization` option. This allows the user to supply an HTTP Authorization header which will be passed to the source URL. For the common case of basic authentication, that looks like this: ``` require 'base64' username = 'XXX' password = 'YYY' credentials = Base64.encode64("#{username}:#{password}") version 'the_version' do source url: 'https://example.com/path/to/the/file', authorization: "Basic #{credentials}", ... end ```
- Loading branch information
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters