From 3739a840521b64d72fe7ed2c30a53bd3ee61b64a Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Fri, 15 Apr 2016 13:37:57 +0200 Subject: Remove branch functionality --- lib/gitlab_projects.rb | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib/gitlab_projects.rb') diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index d1a402a..bc98e09 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -50,8 +50,6 @@ class GitlabProjects def exec case @command - when 'create-branch'; create_branch - when 'rm-branch'; rm_branch when 'create-tag'; create_tag when 'add-project'; add_project when 'list-projects'; puts list_projects @@ -114,19 +112,6 @@ class GitlabProjects end end - def create_branch - branch_name = ARGV.shift - ref = ARGV.shift || "HEAD" - cmd = %W(git --git-dir=#{full_path} branch -- #{branch_name} #{ref}) - system(*cmd) - end - - def rm_branch - branch_name = ARGV.shift - cmd = %W(git --git-dir=#{full_path} branch -D -- #{branch_name}) - system(*cmd) - end - def create_tag tag_name = ARGV.shift ref = ARGV.shift || "HEAD" -- cgit v1.2.1