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.

Class Method Summary collapse

Class Method Details

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



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/fig/figrc.rb', line 13

def self.find(
  override_path, repository_url, , fig_home, disable_figrc = false
)
  configuration = 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