Sha256: 7196becab82327281e169fd6ece33ba37acee1d0ac25b8c205ce117093205c94

Contents?: true

Size: 685 Bytes

Versions: 8

Compression:

Stored size: 685 Bytes

Contents

# frozen_string_literal: true

require 'ostruct'

module Uffizzi
  def self.configuration
    @configuration ||= OpenStruct.new
  end

  def self.configure
    yield(configuration)
  end

  configure do |config|
    config.server = 'http://web:7000'
    config.credential_types = {
      dockerhub: 'UffizziCore::Credential::DockerHub',
      azure: 'UffizziCore::Credential::Azure',
      google: 'UffizziCore::Credential::Google',
      amazon: 'UffizziCore::Credential::Amazon',
      github_registry: 'UffizziCore::Credential::GithubContainerRegistry',
      docker_registry: 'UffizziCore::Credential::DockerRegistry',
    }
    config.default_server = 'app.uffizzi.com'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uffizzi-cli-1.0.5 config/uffizzi.rb
uffizzi-cli-1.0.4 config/uffizzi.rb
uffizzi-cli-1.0.3 config/uffizzi.rb
uffizzi-cli-1.0.2 config/uffizzi.rb
uffizzi-cli-1.0.1 config/uffizzi.rb
uffizzi-cli-1.0.0 config/uffizzi.rb
uffizzi-cli-0.14.0 config/uffizzi.rb
uffizzi-cli-0.12.0 config/uffizzi.rb