Method: Pkg::Config.load_defaults

Defined in:
lib/packaging/config.rb

.load_defaultsObject

We supply several values by default, if they haven’t been specified

already by config or environment variable. This includes the project
root as the default project root, which is relative to the
packaging path


334
335
336
337
338
339
340
341
342
343
# File 'lib/packaging/config.rb', line 334

def load_defaults
  @project_root   ||= default_project_root
  @packaging_root ||= default_packaging_root

  Pkg::Params::DEFAULTS.each do |v|
    unless self.instance_variable_get("@#{v[:var]}")
      self.instance_variable_set("@#{v[:var]}", v[:val])
    end
  end
end