Commit 483ff195 authored by Micaël Bergeron's avatar Micaël Bergeron

improvements from feedback

parent d82cc493
#
# Monkey patching the https support for private urls
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/4879
#
module Fog module Fog
module Storage module Storage
class GoogleXML class GoogleXML
class File < Fog::Model class File < Fog::Model
module MonkeyPatch module MonkeyPatch
# Monkey patch this to use `get_https_url`
def url(expires) def url(expires)
requires :key requires :key
collection.get_https_url(key, expires) collection.get_https_url(key, expires)
......
require 'spec_helper' require 'spec_helper'
describe Fog::Storage::GoogleXML::File do describe 'Fog::Storage::GoogleXML::File' do
let(:storage) do let(:storage) do
Fog.mock! Fog.mock!
Fog::Storage.new({ Fog::Storage.new({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment