CGI.escape, but without special treatment on spaces
# File lib/fog/softlayer/core.rb, line 123 def self.escape(str,extra_exclude_chars = '') str.gsub(/([^a-zA-Z0-9_.-#{extra_exclude_chars}]+)/) do '%' + $1.unpack('H2' * $1.bytesize).join('%').upcase end end
# File lib/fog/softlayer/core.rb, line 106 def self.mock_account_id Fog.mocking? and @sl_account_id ||= Fog::Mock.random_numbers(7) end
# File lib/fog/softlayer/core.rb, line 114 def self.mock_global_identifier Fog::UUID.uuid end
# File lib/fog/softlayer/core.rb, line 110 def self.mock_vm_id Fog::Mock.random_numbers(7) end
Generated with the Darkfish Rdoc Generator 2.