summaryrefslogtreecommitdiff
path: root/lib/gitlab_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r--lib/gitlab_projects.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb
index 6700735..7da97ae 100644
--- a/lib/gitlab_projects.rb
+++ b/lib/gitlab_projects.rb
@@ -57,6 +57,9 @@ class GitlabProjects
create_tag
when 'add-project';
add_project
+ when 'create-hooks';
+ # To avoid confusion with self.class.create_hooks
+ create_project_hooks
when 'list-projects';
puts list_projects
when 'rm-project';
@@ -182,6 +185,10 @@ class GitlabProjects
system(*cmd) && self.class.create_hooks(full_path)
end
+ def create_project_hooks
+ self.class.create_hooks(full_path)
+ end
+
def list_projects
$logger.info 'Listing projects'
Dir.chdir(repos_path) do