diff options
Diffstat (limited to 'lib/puppet/util')
| -rw-r--r-- | lib/puppet/util/uri_helper.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/puppet/util/uri_helper.rb b/lib/puppet/util/uri_helper.rb deleted file mode 100644 index cb9320387..000000000 --- a/lib/puppet/util/uri_helper.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Created by Luke Kanies on 2007-10-16. -# Copyright (c) 2007. All rights reserved. - -require 'uri' -require 'puppet/util' - -# Helper methods for dealing with URIs. -module Puppet::Util::URIHelper - def key2uri(key) - # Return it directly if it's fully qualified. - if key =~ /^#{::File::SEPARATOR}/ - key = "file://" + key - end - - begin - uri = URI.parse(URI.escape(key)) - rescue => detail - raise ArgumentError, "Could not understand URI %s: %s" % [key, detail.to_s] - end - end -end |
