diff options
Diffstat (limited to 'lib/leap_cli/config/object_list.rb')
-rw-r--r-- | lib/leap_cli/config/object_list.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/leap_cli/config/object_list.rb b/lib/leap_cli/config/object_list.rb index afcc6a6..f9299a6 100644 --- a/lib/leap_cli/config/object_list.rb +++ b/lib/leap_cli/config/object_list.rb @@ -167,14 +167,17 @@ module LeapCli end # - # applies inherit_from! to all objects. + # Applies inherit_from! to all objects. # - def inherit_from!(object_list) + # 'env' specifies what environment should be for + # each object in the list. + # + def inherit_from!(object_list, env) object_list.each do |name, object| if self[name] self[name].inherit_from!(object) else - self[name] = object.deep_dup + self[name] = object.duplicate(env) end end end |