Sha256: 453fdb4d788941d57c3014356367a98f7f7b8ec54dc639ff0c20ec3caf7d6001

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

class KubesGoogle::Secrets
  class Fetcher
    extend Memoist

    def initialize(options={})
      @options = options
    end

    def fetch(short_name)
      fetcher.fetch(short_name)
    end

    def fetcher
      if KubesGoogle.config.secrets.fetcher == "sdk"
        Sdk.new(@options)
      else
        Gcloud.new(@options)
      end
    end
    memoize :fetcher
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kubes_google-0.3.5 lib/kubes_google/secrets/fetcher.rb
kubes_google-0.3.4 lib/kubes_google/secrets/fetcher.rb