Module: TaskLoader
- Extended by:
- Capistrano::Ops::Helper
- Defined in:
- lib/capistrano/ops/logs.rb,
lib/capistrano/ops/backup.rb,
lib/capistrano/ops/whenever.rb,
lib/capistrano/ops/logrotate.rb,
lib/capistrano/ops/figaro_yml.rb,
lib/capistrano/ops/wkhtmltopdf.rb
Class Method Summary collapse
Methods included from Capistrano::Ops::Helper
binary_path, binary_path_and_version, check_file_and_permissions, file_existing?, gem_in_gemfile?, gem_version, right_permissions?
Class Method Details
.load_tasks_if_gem_present(gem_name, task_path, warning_message) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/capistrano/ops/logs.rb', line 9 def self.load_tasks_if_gem_present(gem_name, task_path, ) if gem_in_gemfile?(gem_name) Dir.glob("#{File.(__dir__)}/#{task_path}/**/*.rake").each { |f| load f } else puts end end |