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

Ability to have modules with a custom namespace #62

Merged
merged 1 commit into from
Oct 23, 2015

Conversation

electrical
Copy link

With this change you can have modules inside the same managed_modules
file but with a custom namespace for exceptions.
This can be handy if you have modules across different namespaces but
want to manage them in the same way

With this change you can have modules inside the same managed_modules
file but with a custom namespace for exceptions.
This can be handy if you have modules across different namespaces but
want to manage them in the same way
@bastelfreak
Copy link
Member

thanks for the contribution!

bastelfreak added a commit that referenced this pull request Oct 23, 2015
Add ability to have modules with a custom namespace
@bastelfreak bastelfreak merged commit 8e21ddd into voxpupuli:master Oct 23, 2015
@@ -50,6 +50,14 @@ def self.managed_modules(path, filter)
managed_modules
end

def self.module_name(module_name, default_namespace)
if module_name.include?('/')
namespace, module_name = module_name.split('/')
Copy link
Contributor

Choose a reason for hiding this comment

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

this reuse/reassignment/return of the module_name feels… dirty…

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.

3 participants