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/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'
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/wax_tasks/asset.rb', line 6 def id @id end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/wax_tasks/asset.rb', line 6 def path @path end |
Class Method Details
.config_from_file(file = nil) ⇒ Object
31 32 33 34 35 |
# File 'lib/wax_tasks.rb', line 31 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 |