Sha256: f9e0b0ba5a780a79d77e1a2c2e64f521c3d7301f9715be1b1cf45effeda34f14
Contents?: true
Size: 1.71 KB
Versions: 54
Compression:
Stored size: 1.71 KB
Contents
require "fog/core" require "fog/json" require "fog/xml" require "fog/google/version" module Fog module Compute autoload :Google, File.expand_path("../compute/google", __FILE__) end module DNS autoload :Google, File.expand_path("../dns/google", __FILE__) end module Google autoload :Mock, File.expand_path("../google/mock", __FILE__) autoload :Monitoring, File.expand_path("../google/monitoring", __FILE__) autoload :Pubsub, File.expand_path("../google/pubsub", __FILE__) autoload :Shared, File.expand_path("../google/shared", __FILE__) autoload :SQL, File.expand_path("../google/sql", __FILE__) extend Fog::Provider service(:compute, "Compute") service(:dns, "DNS") service(:monitoring, "Monitoring") service(:pubsub, "Pubsub") service(:storage, "Storage") service(:sql, "SQL") # CGI.escape, but without special treatment on spaces def self.escape(str, extra_exclude_chars = "") # '-' is a special character inside a regex class so it must be first or last. # Add extra excludes before the final '-' so it always remains trailing, otherwise # an unwanted range is created by mistake. str.gsub(/([^a-zA-Z0-9_.#{extra_exclude_chars}-]+)/) do "%" + Regexp.last_match(1).unpack("H2" * Regexp.last_match(1).bytesize).join("%").upcase end end end module Parsers module Storage autoload :Google, File.expand_path("../parsers/storage/google", __FILE__) end end module Storage autoload :Google, File.expand_path("../storage/google", __FILE__) autoload :GoogleJSON, File.expand_path("../storage/google_json", __FILE__) autoload :GoogleXML, File.expand_path("../storage/google_xml", __FILE__) end end
Version data entries
54 entries across 54 versions & 2 rubygems