class Indocker::BuildContextHelper::Container
Public Class Methods
new(configuration, container)
click to toggle source
# File lib/indocker/build_context_helper.rb, line 75 def initialize(configuration, container) @configuration = configuration @container = container end
Public Instance Methods
build_args()
click to toggle source
# File lib/indocker/build_context_helper.rb, line 80 def build_args Indocker::ContextArgs.new( nil, Indocker::HashMerger.deep_merge(@container.build_args, @container.image.build_args), nil, @container ) end
count()
click to toggle source
# File lib/indocker/build_context_helper.rb, line 93 def count @container.get_start_option(:scale) || 1 end
hostname(number = nil)
click to toggle source
# File lib/indocker/build_context_helper.rb, line 89 def hostname(number = nil) Indocker::ContainerHelper.hostname(@configuration.name, @container, number) end
method_missing(name, *args)
click to toggle source
# File lib/indocker/build_context_helper.rb, line 97 def method_missing(name, *args) @container.send(name, *args) end