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 ``` Signed-off-by: Lee Green <[email protected]>
- Loading branch information