Module: Parcel::Configuration

Defined in:
lib/parcel/configuration.rb

Class Method Summary collapse

Class Method Details

.cache_pathObject



19
20
21
# File 'lib/parcel/configuration.rb', line 19

def self.cache_path
  join_root(config.cache_path)
end

.configObject



3
4
5
# File 'lib/parcel/configuration.rb', line 3

def self.config
  ::Rails.configuration.parcel
end

.entry_pointsObject



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_pathObject



15
16
17
# File 'lib/parcel/configuration.rb', line 15

def self.out_path
  ::Rails.public_path.join(config.public_out_path)
end