You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- class Reposync::DeleteBranchService < Reposync::ClientService
-
- attr_accessor :repo_name, :branch_name
-
- def initialize(repo_name, branch_name)
- @repo_name = repo_name
- @branch_name = branch_name
- end
-
- def call
- result = delete(url)
- response = render_response(result)
- end
-
- private
- def url
- "/cerobot/sync/#{repo_name}/branch/#{branch_name}"
- end
- end
|