Sha256: 21b8685fc91663a5510f9b11cb63a812392cb5f5c359c921d687e8cafd7aacce

Contents?: true

Size: 417 Bytes

Versions: 9

Compression:

Stored size: 417 Bytes

Contents

class KubesGoogle::Secrets::Fetcher
  class Base
    include KubesGoogle::Logging

    def initialize(options={})
      @options = options
      @base64 = options[:base64]
      @project_id = options[:google_project] || ENV['GOOGLE_PROJECT'] || raise("GOOGLE_PROJECT env variable is not set. It's required.")
    end

    def base64?
      @base64.nil? ? KubesGoogle.config.secrets.base64 : @base64
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kubes_google-0.3.11 lib/kubes_google/secrets/fetcher/base.rb
kubes_google-0.3.10 lib/kubes_google/secrets/fetcher/base.rb
kubes_google-0.3.9 lib/kubes_google/secrets/fetcher/base.rb
kubes_google-0.3.8 lib/kubes_google/secrets/fetcher/base.rb
kubes_google-0.3.7 lib/kubes_google/secrets/fetcher/base.rb
kubes_google-0.3.6 lib/kubes_google/secrets/fetcher/base.rb
kubes_google-0.3.5 lib/kubes_google/secrets/fetcher/base.rb
kubes_google-0.3.4 lib/kubes_google/secrets/fetcher/base.rb
kubes_google-0.3.3 lib/kubes_google/secrets/fetcher/base.rb