lib/librarian/puppet/dsl.rb in librarian-puppet-0.9.10 vs lib/librarian/puppet/dsl.rb in librarian-puppet-0.9.11
- old
+ new
@@ -12,5 +12,18 @@
source :path => Source::Path
source :github_tarball => Source::GitHubTarball
end
end
end
+
+module Librarian
+ class Dsl
+ class Receiver
+ def modulefile
+ File.read('Modulefile').lines.each do |line|
+ regexp = /\s*dependency\s+('|")([^'"]+)\1\s*(?:,\s*('|")([^'"]+)\3)?/
+ regexp =~ line && mod($2, $4)
+ end
+ end
+ end
+ end
+end