Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Fix: Don't cache Mixlib::ShellOut #18

Merged
merged 2 commits into from
Nov 22, 2016

Conversation

fmitchell-r7
Copy link
Contributor

This fixes #15 by switching Mixlib::ShellOut to DaemonRunner::ShellOut. The [daemon_runner gem(https://github.com/rapid7/daemon_runner) does the right thing and doesn't cache the Mixlib::ShellOut instance between executions.

@fmitchell-r7 fmitchell-r7 changed the title Fix dont cache mixlib shellout Fix: Don't cache Mixlib::ShellOut Nov 21, 2016
@@ -10,16 +10,16 @@ GIT
PATH
remote: .
specs:
cassandra-utils (0.2.4)
daemon_runner (~> 0.2)
cassandra-utils (0.0.1)

Choose a reason for hiding this comment

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

Was this change intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have a local VERSION file, so it reverted to the 0.0.1 version. As far as I know, this shouldn't break anything. @athompson-r7, any thoughts on this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Do this won't break anything. The next release should fix things.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rdickey-r7, we're using thor-scmversion to handle versioning in the CI job. It reads the version from tags in the Git repo, so the version in Gemfile.lock is ignored.

Choose a reason for hiding this comment

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

Cool, good to know.

@fmitchell-r7 fmitchell-r7 merged commit 9d2003d into master Nov 22, 2016
@fmitchell-r7 fmitchell-r7 deleted the fix-dont-cache-mixlib-shellout branch November 22, 2016 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't cache the Mixlib::ShellOut instance
4 participants