lib/puppet/module_tool/repository.rb
# Return the cache key for this repository, this a hashed string based on
# the URI.
Return the cache key for this repository, this a hashed string based on
the URI.
Return the cache key for this repository this a hashed string based on the URI .
def cache_key
      return @cache_key ||= [
        @uri.to_s.gsub(/[^[:alnum:]]+/, '_').sub(/_$/, ''),
        Digest::SHA1.hexdigest(@uri.to_s)
      ].join('-')
    end
def cache_key return @cache_key ||= [ @uri . to_s . gsub ( / [^[:alnum:]]+ / , '_' ) . sub ( / _$ / , '' ) , Digest :: SHA1 . hexdigest ( @uri . to_s ) ] . join ( '-' ) end
Return the cache key for this repository, this a hashed string based on
the URI.
Return the cache key for this repository this a hashed string based on the URI .