Sha256: 39989aa10851854efdc5c964f56aa0ca2069c264f7080bf5156a07d81a3e3cbb

Contents?: true

Size: 692 Bytes

Versions: 5

Compression:

Stored size: 692 Bytes

Contents

require "kubes_google/version"
require "logger"

require "kubes_google/autoloader"
KubesGoogle::Autoloader.setup

module KubesGoogle
  class Error < StandardError; end

  @@logger = nil
  def logger
    @@logger ||= Kubes.logger
  end

  def logger=(v)
    @@logger = v
  end

  # Friendlier method configure.
  #
  #    .kubes/config/env/dev.rb
  #    .kubes/config/plugins/google.rb # also works
  #
  # Example:
  #
  #     KubesGoogle.configure do |config|
  #       config.hooks.gke_whitelist = true
  #     end
  #
  def configure(&block)
    Config.instance.configure(&block)
  end

  def config
    Config.instance.config
  end

  extend self
end

Kubes::Plugin.register(KubesGoogle)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kubes_google-0.3.4 lib/kubes_google.rb
kubes_google-0.3.3 lib/kubes_google.rb
kubes_google-0.3.2 lib/kubes_google.rb
kubes_google-0.3.1 lib/kubes_google.rb
kubes_google-0.3.0 lib/kubes_google.rb