Class: Fig::FigRC

Inherits:
Object
  • Object
show all
Defined in:
lib/fig/figrc.rb

Overview

Parse multiple figrc files and assemble them into a single ApplicationConfiguration object.

Constant Summary collapse

REPOSITORY_CONFIGURATION =
"#{Fig::Repository::METADATA_SUBDIRECTORY}/figrc"

Class Method Summary collapse

Class Method Details

.find(override_path, repository_url, login, fig_home, disable_figrc = false) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/fig/figrc.rb', line 16

def self.find(
  override_path, repository_url, , fig_home, disable_figrc = false
)
  configuration = Fig::ApplicationConfiguration.new(repository_url)

  handle_override_configuration(configuration, override_path)
  handle_figrc(configuration) if not disable_figrc
  handle_repository_configuration(
    configuration, repository_url, , fig_home
  )

  return configuration
end