mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
🐼 857: Load tasks from the deploy.rb
This commit is contained in:
parent
82dfc78517
commit
a5b76f782a
1 changed files with 9 additions and 0 deletions
|
@ -42,6 +42,15 @@ module Capistrano
|
|||
|
||||
private
|
||||
|
||||
def load_imports
|
||||
if options.show_tasks
|
||||
invoke 'load:defaults'
|
||||
Dir[deploy_config_path, stage_definitions].each { |f| add_import f }
|
||||
end
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
# allows the `cap install` task to load without a capfile
|
||||
def capfile
|
||||
File.expand_path(File.join(File.dirname(__FILE__),'..','Capfile'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue