lib/librarian/puppet/util.rb in librarian-puppet-1.1.3 vs lib/librarian/puppet/util.rb in librarian-puppet-1.2.0

- old
+ new

@@ -36,8 +36,13 @@ # normalize module name to use organization-module instead of organization/module def normalize_name(name) name.sub('/','-') end + + # get the organization name from organization-module + def organization_name(name) + name.split('-',2).last + end end end end