Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
melezhik opened this issue Mar 18, 2015 · 0 comments
Open

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

melezhik opened this issue Mar 18, 2015 · 0 comments

Comments

@melezhik
Copy link

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

@melezhik melezhik changed the title pass http headers in Chef::Resource::RemoteFile pass http headers to Chef::Resource::RemoteFile Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant