RiotGamesCookbooks / artifact-cookbook

Provides your cookbooks with the Artifact Deploy LWRP
Other
134 stars 91 forks source link

pass http headers to Chef::Resource::RemoteFile #159

Open melezhik opened 9 years ago

melezhik commented 9 years ago

now as I see in the code there is no way to pass http headers to artifact_deploy resource , which will be very useful when request http resources requiring basic authentication.

def remote_file_resource
  @remote_file_resource ||= remote_file new_resource.path do
    source file_location
    checksum new_resource.checksum
    owner new_resource.owner
    group new_resource.group
    backup false
    action :nothing
  end
end