Module: Mimi
- Extended by:
- Core
- Defined in:
- lib/mimi/core/rake.rb,
lib/mimi/core.rb,
lib/mimi/core/module.rb,
lib/mimi/core/struct.rb,
lib/mimi/core/version.rb,
lib/mimi/core/manifest.rb,
lib/mimi/core/inheritable_property.rb
Overview
When required, mimi/core/rake
loads all rake tasks exported by loaded modules
and current application (found under app_root_path
).
Usage:
# lib/my_app.rb
require 'mimi/core'
require 'mimi/db'
# lib/tasks/my_task.rake
desc 'My application task'
task :my_task do
puts
end
# Rakefile
require_relative 'lib/my_app'
require 'mimi/core/rake'
This makes rake tasks exported by mimi-db
and other loaded modules available:
$ rake -T
rake db:clear # Clear database
rake db:config # Show database config
rake db:create # Create database
...
rake my_task # My application task
Defined Under Namespace
Modules: Core
Constant Summary
Constants included from Core
Method Summary
Methods included from Core
app_path_to, app_root_path, app_root_path=, loaded_modules, loaded_modules_paths, require_files, start, stop, use, used_modules