Skip to content
Snippets Groups Projects
Commit f5d13534 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Adds API_Gitlab_URL setting and overwrites Gitlab.Server with defined value.

parent 075591eb
No related branches found
No related tags found
No related merge requests found
......@@ -79,3 +79,5 @@ jalik:ufs
jalik:ufs-gridfs
monbro:mongodb-mapreduce-aggregation
accounts-gitlab
gitlab
rocketchat:gitlab
......@@ -106,6 +106,7 @@ rocketchat:colors@0.0.1
rocketchat:emojione@0.0.1
rocketchat:favico@0.0.1
rocketchat:file@0.0.1
rocketchat:gitlab@0.0.1
rocketchat:highlight@0.0.1
rocketchat:ldap@0.0.1
rocketchat:lib@0.0.1
......
Meteor.startup ->
Tracker.autorun ->
if RocketChat.settings.get 'API_Gitlab_URL'
Gitlab.ServerURL = RocketChat.settings.get 'API_Gitlab_URL'
{
"API_Gitlab_URL": "GitLab URL"
}
\ No newline at end of file
Package.describe({
name: 'rocketchat:gitlab',
version: '0.0.1',
summary: 'RocketChat settings for GitLab Oauth Flow'
});
// Loads all i18n.json files into tapi18nFiles
var _ = Npm.require('underscore');
var fs = Npm.require('fs');
tapi18nFiles = _.map(fs.readdirSync('packages/rocketchat-gitlab/i18n'), function(filename) { return 'i18n/' + filename });
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use(["tap:i18n@1.5.1"], ["client", "server"]);
api.add_files("package-tap.i18n", ["client", "server"]);
api.use(['templating'], 'client');
api.use([
'coffeescript',
'rocketchat:lib@0.0.1',
'gitlab@1.1.4-plugins.0'
]);
api.addFiles('startup.coffee', 'server');
api.addFiles('common.coffee', [ 'client', 'server' ]);
api.add_files(tapi18nFiles, ["client", "server"]);
});
Package.onTest(function(api) {
});
RocketChat.settings.add 'API_Gitlab_URL', '', { type: 'string', group: 'API', public: true, i18nLabel: 'rocketchat-gitlab:API_Gitlab_URL' }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment