Account for remote repositories in SCM rake task

pull/3680/head
Oliver Günther 9 years ago
parent cddeebbf43
commit 7d77bef80e
  1. 8
      lib/tasks/scm.rake

@ -54,9 +54,15 @@ namespace :scm do
scm.each_pair do |vendor, config|
vendor = vendor.to_s.classify
managed = config['manages']
repo_class = Repository.const_get(vendor)
if managed.nil?
puts 'SCM vendor #{vendor} does not use managed repositories. Skipping.'
puts "SCM vendor #{vendor} does not use managed repositories. Skipping."
next
end
if repo_class.manages_remote?
puts "SCM vendor #{vendor} uses remote managed repositories. Skipping."
next
end

Loading…
Cancel
Save