lib/librarian/puppet/source/forge/repo_v1.rb
def api_data(module_name)
            return @api_data[module_name] if @api_data
            # call API and cache data
            @api_data = normalize_dependencies(api_call(module_name))
            if @api_data.nil?
              raise Error, "Unable to find module '#{name}' on #{source}"
            end
            @api_data[module_name]
          end
# get and cache the API data for a specific module with all its versions and dependencies
get and cache the API data for a specific module with all its versions and dependencies
get and cache the API data for a specific module with all its versions and dependencies
def api_data(module_name)
            return @api_data[module_name] if @api_data
            @api_data = normalize_dependencies(api_call(module_name))
            if @api_data.nil?
              raise Error, "Unable to find module '#{name}' on #{source}"
            end
            @api_data[module_name]
          end
def api_data ( module_name ) return @api_data [ module_name ] if @api_data @api_data = normalize_dependencies ( api_call ( module_name ) ) if @api_data . nil? raise Error , "Unable to find module '#{name}' on #{source}" end @api_data [ module_name ] end
get and cache the API data for a specific module with all its versions and dependencies
get and cache the API data for a specific module with all its versions and dependencies
# call API and cache data
module_name