Added project to project linking
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class RepoManager
|
||||
attr :path, :error
|
||||
attr :path, :error, :last_status, :last_pid
|
||||
|
||||
def initialize(path)
|
||||
@error = nil
|
||||
@@ -10,5 +10,10 @@ class RepoManager
|
||||
end
|
||||
|
||||
def create_repo
|
||||
%x(/usr/bin/createrepo_c --database --workers 1 "#{@path}")
|
||||
result = $?
|
||||
@last_status = result.exitstatus
|
||||
@last_pid = result.pid
|
||||
result
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user