Module: Statistrano::Deployment::RakeTasks
- Extended by:
- Rake::DSL
- Defined in:
- lib/statistrano/deployment/rake_tasks.rb
Class Method Summary collapse
-
.register(deployment) ⇒ Void
Register the rake tasks for the deployment.
Class Method Details
.register(deployment) ⇒ Void
Register the rake tasks for the deployment
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/statistrano/deployment/rake_tasks.rb', line 12 def register deployment deployment.config.tasks.each do |task_name, task_attrs| in_namespace rake_namespace(deployment) do register_task deployment, task_name, task_attrs end end deployment.config.user_tasks.each do |task_obj| in_namespace rake_namespace(deployment) do register_in_namespace_recursive deployment, task_obj[:name], task_obj[:desc], task_obj[:namespaces], task_obj[:block] end end end |