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

Version Path
kubes-0.9.1 lib/kubes/docker.rb
kubes-0.9.0 lib/kubes/docker.rb
kubes-0.8.10 lib/kubes/docker.rb
kubes-0.8.9 lib/kubes/docker.rb
kubes-0.8.8 lib/kubes/docker.rb
kubes-0.8.7 lib/kubes/docker.rb
kubes-0.8.6 lib/kubes/docker.rb
kubes-0.8.5 lib/kubes/docker.rb
kubes-0.8.4 lib/kubes/docker.rb
kubes-0.8.3 lib/kubes/docker.rb
kubes-0.8.2 lib/kubes/docker.rb
kubes-0.8.1 lib/kubes/docker.rb
kubes-0.8.0 lib/kubes/docker.rb
kubes-0.7.10 lib/kubes/docker.rb
kubes-0.7.9 lib/kubes/docker.rb
kubes-0.7.8 lib/kubes/docker.rb
kubes-0.7.7 lib/kubes/docker.rb
kubes-0.7.6 lib/kubes/docker.rb
kubes-0.7.5 lib/kubes/docker.rb
kubes-0.7.4 lib/kubes/docker.rb