Sha256: 3960b9fc115f10807f8df5cd1ccd44be957d2628e78104b5de1c9daf64594936

Contents?: true

Size: 474 Bytes

Versions: 21

Compression:

Stored size: 474 Bytes

Contents

module Kubes
  module Core
    extend Memoist

    def env
      ENV['KUBES_ENV'] || "dev"
    end

    def root
      ENV['KUBES_ROOT'] || Dir.pwd
    end

    def configure(&block)
      Config.instance.configure(&block)
    end

    def config
      Config.instance.load_configs
      Config.instance.config
    end
    memoize :config

    def logger
      config.logger
    end
    memoize :logger

    def kustomize?
      Kubectl::Kustomize.detect?
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
kubes-0.4.7 lib/kubes/core.rb
kubes-0.4.6 lib/kubes/core.rb
kubes-0.4.5 lib/kubes/core.rb
kubes-0.4.4 lib/kubes/core.rb
kubes-0.4.3 lib/kubes/core.rb
kubes-0.4.2 lib/kubes/core.rb
kubes-0.4.1 lib/kubes/core.rb
kubes-0.4.0 lib/kubes/core.rb
kubes-0.3.5 lib/kubes/core.rb
kubes-0.3.4 lib/kubes/core.rb
kubes-0.3.3 lib/kubes/core.rb
kubes-0.3.2 lib/kubes/core.rb
kubes-0.3.1 lib/kubes/core.rb
kubes-0.3.0 lib/kubes/core.rb
kubes-0.2.6 lib/kubes/core.rb
kubes-0.2.5 lib/kubes/core.rb
kubes-0.2.4 lib/kubes/core.rb
kubes-0.2.3 lib/kubes/core.rb
kubes-0.2.2 lib/kubes/core.rb
kubes-0.2.1 lib/kubes/core.rb