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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

New vagrant pristine command #5613

Closed
wants to merge 1 commit into from
Closed

New vagrant pristine command #5613

wants to merge 1 commit into from

Conversation

fgrehm
Copy link
Contributor

@fgrehm fgrehm commented Apr 21, 2015

Closes GH-5378

Ideally we should just reuse the other command plugins instead of copying and pasting but its been a while since I been around the codebase and I can't remember if it would be possible to do that 馃槉

/cc @sethvargo

DESC

command("pristine") do
require File.expand_path("../command", __FILE__)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use require_relative instead please

@sethvargo
Copy link
Contributor

Hey @fgrehm

Thank you for the Pull Request. At a high level, this looks really great. Do you think you could add some tests for this? If you look at the pushes tests, I think you can find a good pattern to use. I'm just really hesitant to merge such a large change without test coverage. Even if it works now, we need to prevent regressions in the future 馃槃

@fgrehm
Copy link
Contributor Author

fgrehm commented Jun 1, 2015

Sure! I'll try to write those tests over the week.

@mitchellh
Copy link
Contributor

Thanks for this. I'm not a big fan of the name, I don't know what to expect with pristine, for example I still have no idea what gem pristine does. I know what "pristine" means but for some reason it has never resonated with me as a command name. I still think this makes sense as a flag to reload.

@mitchellh
Copy link
Contributor

.@sethvargo is trying to convince me this should be a command and not a flag. We'll delay this for 1.8 in some form.

@fgrehm
Copy link
Contributor Author

fgrehm commented Jul 10, 2015

No worries! I'm not sure when I'll have a chance to write tests for this so feel free to close the PR if you guys want to hold back on it! 馃嵒

@sethvargo
Copy link
Contributor

Hey @fgrehm

Thanks for the PR. Coming around back to this (almost a year later), I think I've had a change of heart. After reading through all the comments in the original issue, I think everyone's opinions on "what this should be named" and "what it should do" are too far apart. As such, I'm going to recommend folks use a shell alias to involve whatever their preferred behavior is, instead of building this into core. I totally appreciate your efforts on this PR, but I'm actively working to simplify Vagrant's CLI API, and I don't think it's wise to add new commands at this time, especially since this "works" with some &&. Sorry!

@sethvargo sethvargo closed this May 27, 2016
@fgrehm fgrehm deleted the f-pristine-cmd branch May 30, 2016 23:38
@fgrehm
Copy link
Contributor Author

fgrehm commented May 30, 2016

No need to be sorry! 馃嵒

@hashicorp hashicorp locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Command: vagrant rebuild
3 participants