Sha256: b4408a1b1937485e6c9173b91f29d5af2a01ee4c286a706cd877f3e157f36aaa

Contents?: true

Size: 777 Bytes

Versions: 31

Compression:

Stored size: 777 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'
    config.default_kubeconfig_path = ENV['CLI_DEFAULT_KUBECONFIG_PATH'] || '~/.kube/config'
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
uffizzi-cli-2.4.11 config/uffizzi.rb
uffizzi-cli-2.4.10 config/uffizzi.rb
uffizzi-cli-2.4.9 config/uffizzi.rb
uffizzi-cli-2.4.8 config/uffizzi.rb
uffizzi-cli-2.4.7 config/uffizzi.rb
uffizzi-cli-2.4.6 config/uffizzi.rb
uffizzi-cli-2.4.5 config/uffizzi.rb
uffizzi-cli-2.4.4 config/uffizzi.rb
uffizzi-cli-2.4.3 config/uffizzi.rb
uffizzi-cli-2.4.2 config/uffizzi.rb
uffizzi-cli-2.4.1 config/uffizzi.rb
uffizzi-cli-2.4.0 config/uffizzi.rb
uffizzi-cli-2.3.4 config/uffizzi.rb
uffizzi-cli-2.3.3 config/uffizzi.rb
uffizzi-cli-2.3.2 config/uffizzi.rb
uffizzi-cli-2.3.1 config/uffizzi.rb
uffizzi-cli-2.3.0 config/uffizzi.rb
uffizzi-cli-2.2.2 config/uffizzi.rb
uffizzi-cli-2.2.1 config/uffizzi.rb
uffizzi-cli-2.2.0 config/uffizzi.rb