Method: S3::Bucket#vhost?
- Defined in:
- lib/s3/bucket.rb
#vhost? ⇒ Boolean
Returns true if the name of the bucket can be used like VHOST
name. If the bucket contains characters like underscore it can’t be used as VHOST
(e.g. bucket_name.s3.amazonaws.com
)
94 95 96 |
# File 'lib/s3/bucket.rb', line 94 def vhost? !service.use_ssl && service.use_vhost && "#@name.#{S3.host}" =~ /\A#{URI::REGEXP::PATTERN::HOSTNAME}\Z/ end |