Sha256: 84fc255b317d03d603abd658939915f967239d78cac528d98d41dbf9f5bbe516

Contents?: true

Size: 501 Bytes

Versions: 53

Compression:

Stored size: 501 Bytes

Contents

module Fog
  module Storage
    class Google < Fog::Service
      def self.new(options = {})
        begin
          fog_creds = Fog.credentials
        rescue
          fog_creds = nil
        end

        if options.keys.include?(:google_storage_access_key_id) ||
           (!fog_creds.nil? && fog_creds.keys.include?(:google_storage_access_key_id))
          Fog::Storage::GoogleXML.new(options)
        else
          Fog::Storage::GoogleJSON.new(options)
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/storage/google.rb
fog-google-1.24.0 lib/fog/storage/google.rb
fog-google-1.23.0 lib/fog/storage/google.rb
fog-google-1.22.0 lib/fog/storage/google.rb
fog-google-1.21.1 lib/fog/storage/google.rb
fog-google-1.21.0 lib/fog/storage/google.rb
fog-google-1.20.0 lib/fog/storage/google.rb
fog-google-1.19.0 lib/fog/storage/google.rb
fog-google-1.18.0 lib/fog/storage/google.rb
fog-google-1.17.0 lib/fog/storage/google.rb
fog-google-1.16.1 lib/fog/storage/google.rb
fog-google-1.16.0 lib/fog/storage/google.rb
fog-google-1.15.0 lib/fog/storage/google.rb
fog-google-1.14.0 lib/fog/storage/google.rb
gitlab-fog-google-1.14.0 lib/fog/storage/google.rb
fog-google-1.13.0 lib/fog/storage/google.rb
gitlab-fog-google-1.13.0 lib/fog/storage/google.rb
fog-google-1.12.1 lib/fog/storage/google.rb
fog-google-1.12.0 lib/fog/storage/google.rb
fog-google-1.11.0 lib/fog/storage/google.rb