class Indocker::BuildContextHelper::Containers
Public Class Methods
new(configuration)
click to toggle source
# File lib/indocker/build_context_helper.rb, line 49 def initialize(configuration) @configuration = configuration end
Public Instance Methods
method_missing(name, *args)
click to toggle source
# File lib/indocker/build_context_helper.rb, line 53 def method_missing(name, *args) if args.size > 0 raise ArgumentError.new("containers.#{name} does not accept arguments") end if Indocker.container_files.has_key?(name) require Indocker.container_files.fetch(name) end container = @configuration.containers.detect do |container| container.name == name end if !container raise ArgumentError.new("container :#{name} was not found in configuration") end Container.new(@configuration, container) end