1
0
Fork 0
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:
Michael Nikitochkin 2014-01-09 03:52:08 +02:00
parent 82dfc78517
commit a5b76f782a

View file

@ -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'))