Module: WaxTasks
- Defined in:
- lib/wax_tasks.rb,
lib/wax_tasks/item.rb,
lib/wax_tasks/site.rb,
lib/wax_tasks/asset.rb,
lib/wax_tasks/error.rb,
lib/wax_tasks/index.rb,
lib/wax_tasks/utils.rb,
lib/wax_tasks/config.rb,
lib/wax_tasks/record.rb,
lib/wax_tasks/version.rb,
lib/wax_tasks/collection.rb,
lib/wax_tasks/collection/images.rb,
lib/wax_tasks/collection/metadata.rb
Defined Under Namespace
Modules: Error, Utils Classes: Asset, Collection, Config, Derivative, Index, Item, Record, Site
Constant Summary collapse
- DEFAULT_CONFIG_FILE =
'./_config.yml'
- VERSION =
'1.1.5'
Class Method Summary collapse
Class Method Details
.config_from_file(file = nil) ⇒ Object
32 33 34 35 36 |
# File 'lib/wax_tasks.rb', line 32 def self.config_from_file(file = nil) Utils.validate_yaml(file || DEFAULT_CONFIG_FILE) rescue StandardError => e raise WaxTasks::Error::InvalidConfig, "Cannot open config file '#{file}'.\n #{e}" end |