Module: Parcel::Configuration
- Defined in:
- lib/parcel/configuration.rb
Class Method Summary collapse
- .cache_path ⇒ Object
- .config ⇒ Object
- .entry_points ⇒ Object
- .join_root(path) ⇒ Object
- .out_path ⇒ Object
Class Method Details
.cache_path ⇒ Object
19 20 21 |
# File 'lib/parcel/configuration.rb', line 19 def self.cache_path join_root(config.cache_path) end |
.config ⇒ Object
3 4 5 |
# File 'lib/parcel/configuration.rb', line 3 def self.config ::Rails.configuration.parcel end |
.entry_points ⇒ Object
11 12 13 |
# File 'lib/parcel/configuration.rb', line 11 def self.entry_points join_root(config.source_entry_path).glob(config.source_entry_types) end |
.join_root(path) ⇒ Object
7 8 9 |
# File 'lib/parcel/configuration.rb', line 7 def self.join_root(path) ::Rails.root.join(path) end |
.out_path ⇒ Object
15 16 17 |
# File 'lib/parcel/configuration.rb', line 15 def self.out_path ::Rails.public_path.join(config.public_out_path) end |