Add support for "forge_modules" in fixtures. #46
Merged
+35
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a new forge_modules category, similar to repositories,
it can be given as a simple string argument, or with a hash to specify
version.
I have done local testing, but I'm not sure how feasible it is to
write unit tests for something like this. (There seem to not be any for
existing rake tests.)
I ignore dependencies when installing fixture modules. Since we don't
clean directories that are not expressly listed, we shouldn't install
dependencies because they won't be cleaned up. Besides, it's probably
better to have to be explicit about your chain of dependencies.
"repo" and "ref" don't really work as well as for git repos, but
renaming them is outside the scope of this change and I didn't really
want to make it any more complicated than necessary.
I see the direct uses of the module face in the
build
task, but thebuild
task doesn't work for me (ironically enough, it seems like someof initialization that this gem supplies needs to be done):
Could not autoload puppet/face/module/install: Error converting value for param 'modulepath': Could not find value for $confdir
In fact, this happens when I do the same thing w/irb:
... so I'm just shelling out to 'puppet module install' directly.