def get_module(author, name, version)
            return nil unless this_module?(author, name, version)
            PuppetLibrary::Archive::Archiver.archive_dir(@module_dir.path, "#{author}-#{name}-#{version}") do |archive|
                archive.add_file("metadata.json", 0644) do |entry|
                    entry.write metadata.to_json
                end
            end
        end
def get_module(author, name, version)
            return nil unless this_module?(author, name, version)
            PuppetLibrary::Archive::Archiver.archive_dir(@module_dir.path, "#{author}-#{name}-#{version}") do |archive|
                archive.add_file("metadata.json", 0644) do |entry|
                    entry.write metadata.to_json
                end
            end
        end
* <tt>:module_dir</tt> - The directory containing the module's source.