lib/dockdev/dockdev_config.rb in dockdev-0.4.0 vs lib/dockdev/dockdev_config.rb in dockdev-0.4.1
- old
+ new
@@ -56,10 +56,11 @@
# for image
attr_accessor :workdir
# for container
attr_reader :mounts, :ports
+ attr_accessor :network
# for image
attr_reader :dockerfile_entries
# since context activation is automated:
@@ -67,9 +68,10 @@
# 2. activate_context shall add those context which is not found by automated discovery
attr_reader :skip_context, :activate_context
def initialize(val = {})
@mounts = val[:mounts] || {}
@ports = val[:ports] || {}
+ @network = val[:network] || nil
@dockerfile_entries = val[:dockerfile_entries] || []
@workdir = val[:workdir] || "/opt"
@skip_context = val[:skip_context] || []
@activate_context = val[:activate_context] || []
end