Sha256: 719ab91396db50ede5037c677a76db0d9dd127a225e6f7461f1e3fb05461d7ca
Contents?: true
Size: 454 Bytes
Versions: 50
Compression:
Stored size: 454 Bytes
Contents
module Kubes class Docker def initialize(options, name) @options = options @name = name end def run strategy = strategy_class.new(@options, @name) # @name: docker or push strategy.run end def strategy_class strategy = Kubes.config.builder.to_s.camelize # IE: Docker or Gcloud klass_name = "Kubes::Docker::Strategy::#{@name.camelize}::#{strategy}" klass_name.constantize end end end
Version data entries
50 entries across 50 versions & 1 rubygems