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

separate directory resolver from target resolver #446

Merged
merged 2 commits into from
Feb 10, 2016
Merged

Conversation

arlimus
Copy link
Contributor

@arlimus arlimus commented Feb 10, 2016

Our target resolvers are split up into "retrieve that file / url / ..." and "understand what this thing is you are handling and get me inspec code". The division between these has not been clean, they are still sharing their space in the Targets library.

This MR puts our DirsHelper into the special position it is in: A collection of resolvers that take a folder structure of any kind (be it local or e.g. inside of a tar-archive) and turns it into raw string'y content.

These directory resolvers now register with DirsHelper. They inherit from DirsResolver and must provide a method to get relevant filenames from their (virtual/local) folder via get_files.

Directory resolvers themselves haven't changed: they still default to handles?, get_filenames, get_libraries, and get_metadata. This has been added as a description in code.

srenatus added a commit that referenced this pull request Feb 10, 2016
start directory resolver cleanup
@srenatus srenatus merged commit d140335 into master Feb 10, 2016
@srenatus srenatus deleted the dr/dir-resolver branch February 10, 2016 13:42
@arlimus arlimus changed the title start directory resolver cleanup separate directory resolver from target resolver Feb 15, 2016
@arlimus arlimus changed the title separate directory resolver from target resolver seperate directory resolver from target resolver Feb 15, 2016
@arlimus arlimus changed the title seperate directory resolver from target resolver separate directory resolver from target resolver Feb 15, 2016
@chris-rock chris-rock modified the milestone: 0.12.0 Feb 19, 2016
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.

None yet

3 participants