Module: Construi::Config::Files
- Included in:
- Environment
- Defined in:
- lib/construi/config.rb
Defined Under Namespace
Classes: File
Instance Method Summary collapse
Instance Method Details
#files ⇒ Object
47 48 49 50 51 |
# File 'lib/construi/config.rb', line 47 def files fs = files_configured? ? yaml['files'].map { |str| File.parse(str) } : [] with_parent([], &:files).concat fs end |
#files_configured? ⇒ Boolean
43 44 45 |
# File 'lib/construi/config.rb', line 43 def files_configured? yaml.is_a? Hash and yaml.has_key? 'files' end |