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

:put action should always unpack the archive file content even if the archive file is unchanged #100

Open
xbeta opened this issue Feb 9, 2015 · 2 comments

Comments

@xbeta
Copy link

xbeta commented Feb 9, 2015

In some cases, where the unpacked content is modified, and we want to go back to the same state as it were in the past, but the archive under /var/chef/cache/foobar.zip is unchanged from remote_file, we should still it to always unpack the content.

Refer to the line here:
https://github.com/burtlo/ark/blob/master/providers/default.rb#L206

@burtlo burtlo added the bug label Mar 17, 2015
@burtlo
Copy link

burtlo commented Mar 17, 2015

So what you would want is a way to say to the ark resource: "Please ignore if the package is updated or not updated. I want the package to be unpacked and the rest of the process be performed"

Is there a way that you would like to specify this?

My first idea is to add an attribute to the resource that overrides the current state of the archive. Of course, that would mean every time the resource would execute it would be taking action. So I don't know if you want to do that or be able to set it another way.

@xbeta
Copy link
Author

xbeta commented Mar 19, 2015

For my use case, an attribute will be fine. I guess you can use run_state too, no strong opinion on that.

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

4 participants