Skip to content

Commit 635f4a8

Browse files
author
Nicolas
committed
Merge pull request #441 from Hugodby/resync_ssh_keys
add resync_ssh_keys rake command
2 parents ed93867 + 5da58e3 commit 635f4a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: lib/tasks/redmine_git_hosting.rake

+9
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,13 @@ namespace :redmine_git_hosting do
9090
line.match(/.*version\s*['"](.*)['"]/)[1]
9191
end
9292

93+
94+
desc "Resync ssh_keys"
95+
task :resync_ssh_keys => [:environment] do
96+
puts "Performing manual resync_ssh_keys operation..."
97+
RedmineGitHosting.logger.warn("Performing manual resync_ssh_keys operation from command line")
98+
GitoliteAccessor.resync_ssh_keys
99+
puts "Done!"
100+
end
101+
93102
end

0 commit comments

Comments
 (0)