Sha256: 6870ac6daf86f79901cfdfc0500910cd32c2f5788226add87227fbac8060c909
Contents?: true
Size: 421 Bytes
Versions: 51
Compression:
Stored size: 421 Bytes
Contents
require 'uri' require 'addressable' module ManageIQ module Smartstate module Util def self.uri_to_local_path(uri_path) # Detect and return UNC paths return URI.decode(uri_path) if uri_path[0, 2] == '//' local = URI.decode(URI.parse(uri_path).path) return local[1..-1] if local[2, 1] == ':' return local rescue return uri_path end end end end
Version data entries
51 entries across 51 versions & 1 rubygems