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

Revise extension discovery to support workspace.config.yaml #9

Open
amclain opened this issue Mar 31, 2015 · 0 comments
Open

Revise extension discovery to support workspace.config.yaml #9

amclain opened this issue Mar 31, 2015 · 0 comments

Comments

@amclain
Copy link
Owner

amclain commented Mar 31, 2015

The current extension system assumes that every file has characters that precede the extension (MyWorkspace.apw), but this isn't the case with workspace.config.yaml. One way to solve this is to move the file name wildcard *. out of NetLinx::Compile::Script and into NetLinx::Compile::ExtensionHandler. This allows each extension handler to decide if it should glob files.

workspaces = Dir["#{dir}/*.{#{workspace_extensions.join ','}}"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant