Sha256: 51aa144bd3ad4a8e50d6f75d05885d95c6415e7a91eebf6165e4c23809fdadcd

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

module Fog
  module Storage
    class Artifactory < Fog::Service
      autoload :Directories, ::File.expand_path('../models/storage/directories', __FILE__)
      autoload :Directory, ::File.expand_path('../models/storage/directory', __FILE__)
      autoload :File, ::File.expand_path('../models/storage/file', __FILE__)
      autoload :Files, ::File.expand_path('../models/storage/files', __FILE__)

      requires   :endpoint
      recognizes :username, :password, :api_key, :ssl_perm_file, :ssl_verify,
                 :proxy_username, :proxy_password, :proxy_address, :proxy_port,
                 :host, :port, :scheme, :persistent, :path_style
      secrets    :password, :api_key

      model_path 'fog/artifactory/models/storage'
      collection :directories
      model      :directory
      model      :file
      collection :files

      class Mock
        def initialize(options = {})
        end
      end

      class Real
        def initialize(options = {})
          @artifactory_client = ::Artifactory::Client.new(options)
        end

        def client
          @artifactory_client
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-artifactory-0.3.0 lib/fog/artifactory/storage.rb
fog-artifactory-0.2.0 lib/fog/artifactory/storage.rb
fog-artifactory-0.1.0 lib/fog/artifactory/storage.rb