redmine_with_git 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/000_dependencies.rb +5 -0
- data/installer/default_settings.sh +0 -36
- data/installer/setup.sh +35 -0
- data/lib/redmine_with_git/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6edac773f07d5b57e925df9c50728a3b334bfe7fa3049cc13f9f80dcc35a7ac4
|
4
|
+
data.tar.gz: cad8b33dcf3caf410cb74bd98acd3796af224cb9651ae77cb96548de2cb38f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 346a42525dad1fb27a2bd5096c56b3c5a62fd4a7567f4f7e275eb1f584f87c2d0e20d4e5070c8c06351b351fe15da7a5449cd2f14ea33838f5a3406fd160bf91
|
7
|
+
data.tar.gz: 68b8f63798f0eed8ffcbd0def8b298dfc4cd60403ce3648344ec4376060db7f024a32e8e69e27f024871059bd775c952638e9570a04fab9fda812b01f1aff5ac
|
@@ -8,4 +8,9 @@ Redmine::Plugin.post_register :redmine_with_git do
|
|
8
8
|
requires_redmine_plugin(:redmine_bootstrap_kit, version_or_higher: '0.2.5')
|
9
9
|
# Source: https://github.com/jbox-web/redmine_git_hosting.git
|
10
10
|
requires_redmine_plugin(:redmine_git_hosting, version_or_higher: '1.2.3')
|
11
|
+
|
12
|
+
# Source: https://github.com/esquilo-azul/redmine_installer
|
13
|
+
if ::Redmine::Plugin.registered_plugins.keys.include?(:redmine_installer)
|
14
|
+
requires_redmine_plugin(:redmine_installer, version_or_higher: '0.9.0')
|
15
|
+
end
|
11
16
|
end
|
@@ -1,43 +1,7 @@
|
|
1
|
-
# Auxilary functions
|
2
|
-
function sanitize_boolean_var {
|
3
|
-
if [ "$1" != 'false' -a "$1" != 'true' ]; then
|
4
|
-
if [ -n "$1" ]; then
|
5
|
-
echo 'true'
|
6
|
-
else
|
7
|
-
echo 'false'
|
8
|
-
fi
|
9
|
-
else
|
10
|
-
echo "$1"
|
11
|
-
fi
|
12
|
-
}
|
13
|
-
|
14
|
-
function set_by_boolean {
|
15
|
-
local value="${!1}"
|
16
|
-
if [ "$(sanitize_boolean_var "$value")" == 'true' ]; then
|
17
|
-
export $2=$3
|
18
|
-
else
|
19
|
-
export $2=$4
|
20
|
-
fi
|
21
|
-
}
|
22
|
-
|
23
|
-
# Default settings
|
24
1
|
export address_https=false
|
25
2
|
export address_host=localhost
|
26
3
|
export address_port=
|
27
|
-
set_by_boolean address_https address_scheme https http
|
28
4
|
export git_repositories_hierarchical_organisation=true
|
29
|
-
set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
|
30
|
-
false true
|
31
5
|
export gitolite_user=git
|
32
6
|
export gitolite_user_home=/var/lib/git
|
33
7
|
export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
|
34
|
-
|
35
|
-
# Auxiliary settings
|
36
|
-
export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
|
37
|
-
export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/installer/template"
|
38
|
-
|
39
|
-
# Redmine configuration
|
40
|
-
if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
|
41
|
-
export REDMINE_CONFIGURATION_EXTRA=''
|
42
|
-
fi
|
43
|
-
export REDMINE_CONFIGURATION_EXTRA+=" scm_xiolite_command: /usr/bin/git"
|
data/installer/setup.sh
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Auxiliary functions
|
2
|
+
function sanitize_boolean_var {
|
3
|
+
if [ "$1" != 'false' -a "$1" != 'true' ]; then
|
4
|
+
if [ -n "$1" ]; then
|
5
|
+
echo 'true'
|
6
|
+
else
|
7
|
+
echo 'false'
|
8
|
+
fi
|
9
|
+
else
|
10
|
+
echo "$1"
|
11
|
+
fi
|
12
|
+
}
|
13
|
+
|
14
|
+
function set_by_boolean {
|
15
|
+
local value="${!1}"
|
16
|
+
if [ "$(sanitize_boolean_var "$value")" == 'true' ]; then
|
17
|
+
export $2=$3
|
18
|
+
else
|
19
|
+
export $2=$4
|
20
|
+
fi
|
21
|
+
}
|
22
|
+
|
23
|
+
set_by_boolean address_https address_scheme https http
|
24
|
+
set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
|
25
|
+
false true
|
26
|
+
|
27
|
+
# Auxiliary settings
|
28
|
+
export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
|
29
|
+
export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/installer/template"
|
30
|
+
|
31
|
+
# Redmine configuration
|
32
|
+
if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
|
33
|
+
export REDMINE_CONFIGURATION_EXTRA=''
|
34
|
+
fi
|
35
|
+
export REDMINE_CONFIGURATION_EXTRA+=" scm_xiolite_command: /usr/bin/git"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_with_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm-tools
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- installer/programs/redmine/installer/triggers/list/redmine_git_hosting_rescue.sh
|
85
85
|
- installer/programs/redmine_git_hosting/ssh_key.sh
|
86
86
|
- installer/programs/text/diff_stdin_file.sh
|
87
|
+
- installer/setup.sh
|
87
88
|
- installer/tasks/_before_run.sh
|
88
89
|
- installer/tasks/apt_ruby.sh
|
89
90
|
- installer/tasks/gitolite.sh
|