From 8fc054a735557a5d58d746504b5cf4ae87ddc3d6 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 16 Apr 2021 10:36:18 -0300 Subject: [PATCH] =?UTF-8?q?documentaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #1094 closes #1093 closes #1089 closes #1054 --- app/models/site/repository.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/site/repository.rb b/app/models/site/repository.rb index 7cc6435..a72c64c 100644 --- a/app/models/site/repository.rb +++ b/app/models/site/repository.rb @@ -8,6 +8,7 @@ class Site class Repository attr_reader :rugged, :changes, :path + # @param [String] la ruta del repositorio def initialize(path) @path = path @rugged = Rugged::Repository.new(path) @@ -41,6 +42,8 @@ class Site # # XXX: Prestar atenciĆ³n a la velocidad de respuesta cuando tengamos # repositorios remotos. + # + # @return [Integer] def fetch if origin.check_connection :fetch @changes = rugged.fetch(origin)[:received_objects] @@ -51,6 +54,7 @@ class Site # Incorpora los cambios en el repositorio actual # + # @return [Rugged::Commit] def merge(usuarie) merge = rugged.merge_commits(head_commit, remote_head_commit)