class KubesGoogle::Secrets::Fetcher::Base

Public Class Methods

new(options={}) click to toggle source
# File lib/kubes_google/secrets/fetcher/base.rb, line 5
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

Public Instance Methods

base64?() click to toggle source
# File lib/kubes_google/secrets/fetcher/base.rb, line 11
def base64?
  @base64.nil? ? KubesGoogle.config.secrets.base64 : @base64
end