NoMethodError: undefined method `force_unlink' for Chef::Resource::SharedDownloadHttp


#1

I am trying to download a file from external repository when I am getting this error. Please help me on this?

ERROR: shared_download_http[http://xxxxxxxxxx828.114228-1.tar.gz] (download::add line 48) had an error: NoMethodError: undefined method `force_unlink' for Chef::Resource::SharedDownloadHttp

shared_download_http "#{_source}" do
path _path
checksum _checksum
headers(_headers) if _headers
basic_auth_user _user.empty? ? nil : _user
basic_auth_password _password.empty? ? nil : _password
action :create
not_if do _source =~ /s3:/// end
end


#2

What version of chef are you using? I did not see that resource after doing a quick search.