redmine_with_git 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cd6d0b32f7a3e275e123bf8fe1f0ea70ae28b4e6a1583b9e62aa0fc9f178801
4
- data.tar.gz: a56eec38d46b777e9c146fe6cd6e7fec559c04c0352eeaf4e0b735693ff9f380
3
+ metadata.gz: 4da1581067c611d753b0d5777c7d7c279a8de40429cd073edbf57d90c33a6bc3
4
+ data.tar.gz: f3a7c684b5523358df1bb3463cd6f5463f8ba8785096ce4f31fd529a987f8f87
5
5
  SHA512:
6
- metadata.gz: c7646e3272b6ef8101cdbaee0251fbb23fe438cb7259ccdabf1ccf7b138065aaf3c2b4688e8b024cd755c363e8f044fdae256df8490c11bb6504a3df6983852e
7
- data.tar.gz: 52a64883cd6eaf2bab3da4cba96021e66984ef3cb84681dfdb0cd2b785397df968924c7d961cd5944527c44da75b21c005a29416261567dadd406e2706232fd0
6
+ metadata.gz: cbe45833d410521bed85e0056e0792e8f85d9db81ca88b7c9f7a1aaf81bdc5b1ead649bb597e50fadfcd66446f8d942afa4f19d18dcfd939fde1b80f98a04aa7
7
+ data.tar.gz: 7f229c4e39f7e7f6f959521f02fc810bad4dbe5f38a2239e969b840a82069808dbfe8dd78183c3c84cf73988289ab97bb97197f06993f7d21fee3b903a569f69
@@ -0,0 +1,47 @@
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
+ export address_https=false
25
+ export address_host=localhost
26
+ export address_port=
27
+ set_by_boolean address_https address_scheme https http
28
+ export address_server="$address_host"
29
+ if [ -n "$address_port" ]; then
30
+ export address_server="$address_server:$address_port"
31
+ fi
32
+ export git_repositories_hierarchical_organisation=true
33
+ set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
34
+ false true
35
+ export gitolite_user=git
36
+ export gitolite_user_home=/var/lib/git
37
+ export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
38
+
39
+ # Auxiliary settings
40
+ export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
41
+ export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/installer/template"
42
+
43
+ # Redmine configuration
44
+ if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
45
+ export REDMINE_CONFIGURATION_EXTRA=''
46
+ fi
47
+ export REDMINE_CONFIGURATION_EXTRA+=" scm_xiolite_command: /usr/bin/git"
@@ -1,51 +1,3 @@
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
- export address_https=false
25
- export address_host=localhost
26
- export address_port=
27
- set_by_boolean address_https address_scheme https http
28
- export address_server="$address_host"
29
- if [ -n "$address_port" ]; then
30
- export address_server="$address_server:$address_port"
31
- fi
32
- export git_repositories_hierarchical_organisation=true
33
- set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
34
- false true
35
- export gitolite_user=git
36
- export gitolite_user_home=/var/lib/git
37
- export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
38
-
39
- # Auxiliary settings
40
- export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
41
- export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/template"
42
-
43
1
  # Task dependencies
44
2
  taskeiro_add_dependency redmine_bundle redmine_with_git_bundle_requirements
45
3
  taskeiro_add_dependency development redmine_git_hosting
46
-
47
- # Redmine configuration
48
- if [ ! -v 'REDMINE_CONFIGURATION_EXTRA' ]; then
49
- export REDMINE_CONFIGURATION_EXTRA=''
50
- fi
51
- REDMINE_CONFIGURATION_EXTRA+=" scm_xiolite_command: /usr/bin/git\n"
@@ -10,7 +10,7 @@ function gitolite_rc_template {
10
10
  }
11
11
 
12
12
  function task_dependencies {
13
- echo gitolite_setup
13
+ echo gitolite_user_home
14
14
  }
15
15
 
16
16
  function task_condition {
@@ -4,7 +4,7 @@ set -u
4
4
  set -e
5
5
 
6
6
  function task_dependencies {
7
- echo gitolite_user_home gitolite redmine_git_hosting_ssh_key
7
+ echo gitolite_rc gitolite redmine_git_hosting_ssh_key
8
8
  }
9
9
 
10
10
  function task_condition {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedmineWithGit
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
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.0
4
+ version: 0.6.1
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: 2019-11-14 00:00:00.000000000 Z
11
+ date: 2019-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -78,6 +78,7 @@ files:
78
78
  - config/locales/pt-BR.yml
79
79
  - config/routes.rb
80
80
  - init.rb
81
+ - installer/default_settings.sh
81
82
  - installer/programs/linux/sudo_file_exists.sh
82
83
  - installer/programs/rails/user.sh
83
84
  - installer/programs/redmine/installer/triggers/list/redmine_git_hosting_rescue.sh