Module: Merb::Plugins
- Defined in:
- lib/merb-core/plugins.rb
Class Method Summary collapse
-
.add_rakefiles(*rakefiles) ⇒ Object
Parameters *rakefiles:: Rakefiles to add to the list of plugin Rakefiles.
-
.config ⇒ Object
Returns Hash:: The configuration loaded from Merb.root / “config/plugins.yml” or, if the load fails, an empty hash.
-
.rakefiles ⇒ Object
Returns Array:: All Rakefiles for plugins.
Class Method Details
.add_rakefiles(*rakefiles) ⇒ Object
Parameters
- *rakefiles
-
Rakefiles to add to the list of plugin Rakefiles.
21 22 23 |
# File 'lib/merb-core/plugins.rb', line 21 def self.add_rakefiles(*rakefiles) Merb.add_rakefiles *rakefiles end |
.config ⇒ Object
Returns
- Hash
-
The configuration loaded from Merb.root / “config/plugins.yml” or, if the load fails, an empty hash.
9 10 11 |
# File 'lib/merb-core/plugins.rb', line 9 def self.config @config ||= File.exists?(Merb.root / "config" / "plugins.yml") ? YAML.load(File.read(Merb.root / "config" / "plugins.yml")) || {} : {} end |