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

[SHACK-154] Create and run with a config file #86

Merged
merged 2 commits into from
Apr 20, 2018
Merged

Conversation

cheeseplus
Copy link

This moves to using a config file workstation.rb instead of continuing to add CLI options. Also setting sensible defaults for chef-client's cache_path to ensure we don't step on regular chef-client.

As part of this some code moved around so we can upload the config and recipe file independently - this will go away in the future when we move to a bundle but for the time being is cleaner code. I'm not thrilled at what PATH_MAPPING is turning into but we can fix that separately.

Signed-off-by: Seth Thomas sthomas@chef.io

Signed-off-by: Seth Thomas <sthomas@chef.io>
@cheeseplus cheeseplus requested a review from a team April 20, 2018 14:32
@marcparadise
Copy link
Member

Thanks for taking this one, it was getting hairier by the PR.

Copy link
Contributor

@tyler-ball tyler-ball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks great except for 1 minor change!

tenor-199704318

EOM

begin
config_file = Tempfile.new
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be deleting this Tempfile afterwords - an ensure block with config_file.unlink?

Signed-off-by: Seth Thomas <sthomas@chef.io>
Copy link
Contributor

@tyler-ball tyler-ball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tenor-257560574

@tyler-ball tyler-ball merged commit eaf28a5 into master Apr 20, 2018
@tyler-ball tyler-ball deleted the shack-154 branch April 20, 2018 19:59
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

Successfully merging this pull request may close these issues.

3 participants