Class: Coatepec::ProjectConfig
- Inherits:
-
Object
- Object
- Coatepec::ProjectConfig
- 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
-
#initialize(root) ⇒ ProjectConfig
constructor
A new instance of ProjectConfig.
- #macos_fork? ⇒ Boolean
- #macos_fork_unsafe_gems ⇒ Object
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
14 15 16 |
# File 'lib/coatepec/project_config.rb', line 14 def macos_fork? !!@data["macos_fork"] end |
#macos_fork_unsafe_gems ⇒ Object
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 |