Sha256: 99a19f75f03d69ce6d6d775082fe4845a1f1bd650ba07d2623ab5df6a9faae44

Contents?: true

Size: 863 Bytes

Versions: 4

Compression:

Stored size: 863 Bytes

Contents

require File.expand_path("../container/version", __FILE__)
require File.expand_path("../container/errors",  __FILE__)

module Vx
  module Lib
    module Container

      autoload :Local,      File.expand_path("../container/local",            __FILE__)
      autoload :Docker,     File.expand_path("../container/docker",           __FILE__)
      autoload :Retriable,  File.expand_path("../container/mixin/retriable",  __FILE__)
      autoload :Upload,     File.expand_path("../container/mixin/upload",     __FILE__)

      extend self

      def lookup(name, options = {})
        case name.to_sym
        when :docker
          Container::Docker.new options
        when :local
          Container::Local.new options
        else
          raise NotFoundConnector.new("No available connector for #{name.inspect} found")
        end
      end

    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vx-lib-container-0.6.3 lib/vx/lib/container.rb
vx-lib-container-0.6.2 lib/vx/lib/container.rb
vx-lib-container-0.6.1 lib/vx/lib/container.rb
vx-lib-container-0.6.0 lib/vx/lib/container.rb