summaryrefslogtreecommitdiff
path: root/backends/gitlab-ee
diff options
context:
space:
mode:
Diffstat (limited to 'backends/gitlab-ee')
-rwxr-xr-xbackends/gitlab-ee28
1 files changed, 14 insertions, 14 deletions
diff --git a/backends/gitlab-ee b/backends/gitlab-ee
index d0db8b9..b69b1fc 100755
--- a/backends/gitlab-ee
+++ b/backends/gitlab-ee
@@ -69,31 +69,31 @@ class GitLabEE < GitLabCE
return URI(url)
end
- def get_meta
+ def cmd_get_meta
map = super
map["mirror"] = _mirrorURL.to_s
return map
end
- def set_meta(map)
+ def cmd_set_meta(map)
if map.has_key?("mirror")
- self._mirrorURL=map["mirror"]
+ mirror = map["mirror"]
map.delete("mirror")
+ super(map)
+ self._mirrorURL=url
+ else
+ super(map)
end
- return super(map)
end
- def create(id, map)
- super(id, map)
- self._mirrorURL=map["mirror"]
+ def cmd_repo_mode
+ return "active"
end
+end
- def capabilities
- return super.map{|c|
- if c[0] == "get-meta" or c[0] == "set-meta"
- c << "mirror"
- end
- c
- }
+if __FILE__ == $0
+ if ARGV.length != 1
+ throw "Usage: $0 ACCOUNT_NAME"
end
+ GitLabEE.new().repl(ARGV[1])
end