lib/pdk/config/namespace.rb in pdk-1.14.1 vs lib/pdk/config/namespace.rb in pdk-1.15.0
- old
+ new
@@ -25,10 +25,10 @@
# @option params [self] :persistent_defaults whether default values should be persisted
# to disk when evaluated. By default they are not persisted to disk. This is typically
# used for settings which a randomly generated, instead of being deterministic, e.g. analytics user-id
# @param block [Proc] a block that is evaluated within the new instance.
def initialize(name = nil, file: nil, parent: nil, persistent_defaults: false, &block)
- @file = File.expand_path(file) unless file.nil?
+ @file = PDK::Util::Filesystem.expand_path(file) unless file.nil?
@settings = {}
@name = name.to_s
@parent = parent
@persistent_defaults = persistent_defaults
@mounts = {}