|
|
|
@ -6,7 +6,7 @@ class GitService
|
|
|
|
|
|
|
|
|
|
class << self
|
|
|
|
|
|
|
|
|
|
['add_repository', 'fork_repository', 'delete_repository', 'file_tree', 'update_file', 'file_content', 'commits', 'add_tree'].each do |method|
|
|
|
|
|
['add_repository', 'fork_repository', 'delete_repository', 'file_tree', 'update_file', 'file_content', 'commits', 'add_tree', 'delete_file'].each do |method|
|
|
|
|
|
define_method method do |params|
|
|
|
|
|
post(method, params)
|
|
|
|
|
end
|
|
|
|
|