Class: Coatepec::ProjectConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/coatepec/project_config.rb

Overview

Optional per-project settings loaded from .coatepec.yml at the project root. A missing file means every setting takes its default -- this file has never been required for Coatepec to work.

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ ProjectConfig

Returns a new instance of ProjectConfig.



10
11
12
# File 'lib/coatepec/project_config.rb', line 10

def initialize(root)
  @data = load(root)
end

Instance Method Details

#macos_fork?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/coatepec/project_config.rb', line 14

def macos_fork?
  !!@data["macos_fork"]
end

#macos_fork_unsafe_gemsObject



18
19
20
# File 'lib/coatepec/project_config.rb', line 18

def macos_fork_unsafe_gems
  Array(@data["macos_fork_unsafe_gems"]).map(&:to_s)
end