Class: Fog::Brightbox::Storage
- Inherits:
-
Service
- Object
- Service
- Fog::Brightbox::Storage
- Defined in:
- lib/fog/brightbox/storage.rb,
lib/fog/brightbox/storage/config.rb,
lib/fog/brightbox/storage/not_found.rb,
lib/fog/brightbox/storage/connection.rb,
lib/fog/brightbox/models/storage/file.rb,
lib/fog/brightbox/models/storage/files.rb,
lib/fog/brightbox/models/storage/directory.rb,
lib/fog/brightbox/models/storage/directories.rb,
lib/fog/brightbox/requests/storage/get_object.rb,
lib/fog/brightbox/requests/storage/put_object.rb,
lib/fog/brightbox/requests/storage/copy_object.rb,
lib/fog/brightbox/requests/storage/head_object.rb,
lib/fog/brightbox/requests/storage/delete_object.rb,
lib/fog/brightbox/requests/storage/get_container.rb,
lib/fog/brightbox/requests/storage/put_container.rb,
lib/fog/brightbox/storage/authentication_request.rb,
lib/fog/brightbox/storage/management_url_unknown.rb,
lib/fog/brightbox/requests/storage/get_containers.rb,
lib/fog/brightbox/requests/storage/head_container.rb,
lib/fog/brightbox/storage/authentication_required.rb,
lib/fog/brightbox/requests/storage/head_containers.rb,
lib/fog/brightbox/requests/storage/delete_container.rb,
lib/fog/brightbox/requests/storage/get_object_http_url.rb,
lib/fog/brightbox/requests/storage/put_object_manifest.rb,
lib/fog/brightbox/requests/storage/get_object_https_url.rb,
lib/fog/brightbox/requests/storage/delete_multiple_objects.rb,
lib/fog/brightbox/requests/storage/put_static_obj_manifest.rb,
lib/fog/brightbox/requests/storage/put_dynamic_obj_manifest.rb,
lib/fog/brightbox/requests/storage/delete_static_large_object.rb,
lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
Defined Under Namespace
Classes: AuthenticationRequest, AuthenticationRequired, Config, Connection, Directories, Directory, File, Files, ManagementUrlUnknown, Mock, NotFound, Real
Class Method Summary collapse
-
.escape(str, extra_exclude_chars = "") ⇒ Object
CGI.escape, but without special treatment on spaces.
Class Method Details
.escape(str, extra_exclude_chars = "") ⇒ Object
CGI.escape, but without special treatment on spaces
216 217 218 219 220 221 |
# File 'lib/fog/brightbox/storage.rb', line 216 def self.escape(str, extra_exclude_chars = "") # Includes fix to Regexp so "-" is correctly handled by placing last 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 |