Method: Vx::Lib::Container#lookup

Defined in:
lib/vx/lib/container.rb

#lookup(name, options = {}) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/vx/lib/container.rb', line 15

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