Sha256: 7fcdbc014da7e5e68abe3b12ff038d684b3fe096f2d377f4052346c78309d87a

Contents?: true

Size: 876 Bytes

Versions: 6

Compression:

Stored size: 876 Bytes

Contents

require "kubes_google/version"
require "logger"

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

module KubesGoogle
  class Error < StandardError; end
  class VpnSslError < 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

  def cloudbuild?
    !!ENV['BUILDER_OUTPUT'] # cloudbuild env vars: https://gist.github.com/tongueroo/7ae26abd60d30da3972e86b4e7ca315e
  end

  extend self
end

Kubes::Plugin.register(KubesGoogle)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kubes_google-0.3.11 lib/kubes_google.rb
kubes_google-0.3.10 lib/kubes_google.rb
kubes_google-0.3.9 lib/kubes_google.rb
kubes_google-0.3.8 lib/kubes_google.rb
kubes_google-0.3.7 lib/kubes_google.rb
kubes_google-0.3.6 lib/kubes_google.rb