Method: Capistrano::Configuration::Namespaces#default_task
- Defined in:
- lib/capistrano/configuration/namespaces.rb
#default_task ⇒ Object
Returns the default task for this namespace. This will be nil
if the namespace is at the top-level, and will otherwise return the task named “default”. If no such task exists, nil
will be returned.
150 151 152 153 |
# File 'lib/capistrano/configuration/namespaces.rb', line 150 def default_task return nil if parent.nil? return tasks[DEFAULT_TASK] end |