capistrano-typo3 0.5.4 → 0.5.5

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: f3149ce6e92c9d14a232b343e3aaca2ff8c1c68ddbb0f74da2eaadd44398fbe1
4
- data.tar.gz: 77501477dcb4a25a9b0f7f8babc6572aa0f985e4bc9d13edcfb8f3fd8a30584f
3
+ metadata.gz: 88c5218fc52ac8dc7402296ac0feee6a3b4e9f2a07dd99737b4d0083209300bd
4
+ data.tar.gz: ed1ac4e834a68cdaef9af49d3776009a9aa5aa0748bdfd15e1b33d1b55847707
5
5
  SHA512:
6
- metadata.gz: 31f64984fc9f162e91d1d4e6c81c6c3f885ea3ee283ea259fa7253f4c844c33fc1ea52cf6c8027efcbfb558e8737316b4c967182d50a9922bd162f792fda2a4d
7
- data.tar.gz: 4ba6dda92f2f5358cb8b8a7a5ae6f6cfc736f4ba3ff8e7e9b00212e877337777deb78d06031b56323197815acc0d58c93f943dad4c055d0805d5b8464d698339
6
+ metadata.gz: 7b6e525ee8fc3d281928c6a9dafe522e62489396d1ba2c1d07d204041ff0156f84b27fb16d230b8bb7aa2bbd07218602528cdfbae7609c09d462d69ceab17751
7
+ data.tar.gz: 37b812ebec06c666df4bec485cd049c3d1b957b31e12cbd7ddbb8f6895f49dee6e0b3eb1e324ee7aa871e4fdb655aab04098de8b014e7313de409b850f8dffaf
data/CHANGELOG.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
+
4
+ ## capistrano-typo3 0.5.5
5
+ - restore passwordless sync for local syncs e.g. CCV certificatie
6
+
3
7
  ## capistrano-typo3 0.5.4
4
8
  - make git recursive optional
5
9
 
6
-
7
10
  ## capistrano-typo3 0.3.2
8
11
  - make mysql dump transfer possible on same server with different users
9
12
 
@@ -19,8 +19,7 @@ namespace :typo3 do
19
19
 
20
20
  ignorestring = ""
21
21
 
22
- if(:t3_db_sync_ignore_tables)
23
-
22
+ if(defined? :t3_db_sync_ignore_tables)
24
23
  fetch(:t3_db_sync_ignore_tables).each do | ignore_tbl |
25
24
  ignorestring = "#{ignorestring} --ignore-table=#{fetch(:t3_live_sync)['dbsync']['dbname']}.#{ignore_tbl}"
26
25
  end
@@ -29,19 +28,19 @@ namespace :typo3 do
29
28
  # DUMP DATABASE TO IMAGE
30
29
  system <<DBSYNC1
31
30
  ssh #{fetch(:t3_live_sync)['dbsync']['ssh_user']}@#{fetch(:t3_live_sync)['dbsync']['ssh_server']} \
32
- 'mysqldump -u#{fetch(:t3_live_sync)['dbsync']['dbuser']} \
31
+ 'mysqldump --no-tablespaces -u#{fetch(:t3_live_sync)['dbsync']['dbuser']} \
33
32
  -h#{fetch(:t3_live_sync)['dbsync']['dbhost']} \
34
33
  -p#{fetch(:t3_live_sync)['dbsync']['dbpass']} \
35
34
  #{ignorestring} \
36
35
  #{fetch(:t3_live_sync)['dbsync']['dbname']} > /tmp/.captypo3dump-src-#{fetch(:t3_live_sync)['dbsync']['dbname']}'
37
36
  DBSYNC1
38
37
 
39
- if(:t3_db_sync_ignore_tables)
38
+ if(defined? :t3_db_sync_ignore_tables)
40
39
  fetch(:t3_db_sync_ignore_tables).each do | ignore_tbl |
41
40
 
42
41
  system <<DBSYNC1
43
42
  ssh #{fetch(:t3_live_sync)['dbsync']['ssh_user']}@#{fetch(:t3_live_sync)['dbsync']['ssh_server']} \
44
- 'mysqldump -u#{fetch(:t3_live_sync)['dbsync']['dbuser']} \
43
+ 'mysqldump --no-tablespaces -u#{fetch(:t3_live_sync)['dbsync']['dbuser']} \
45
44
  -h#{fetch(:t3_live_sync)['dbsync']['dbhost']} \
46
45
  -p#{fetch(:t3_live_sync)['dbsync']['dbpass']} \
47
46
  --no-data \
@@ -57,6 +57,29 @@ deprecation_*.log
57
57
  end
58
58
  end
59
59
 
60
+ desc "update LocalConf with correct db credentionals without SSH"
61
+ task :update_localconf_local do
62
+
63
+ system "echo '<?php' > dummy/typo3conf/AdditionalConfiguration.php"
64
+
65
+ if fetch(:t3_add_unsafe_trusted_host_pattern)
66
+ system "echo ' $GLOBALS[\"TYPO3_CONF_VARS\"][\"SYS\"][\"trustedHostsPattern\"] = \".*\";' >> dummy/typo3conf/AdditionalConfiguration.php"
67
+ end
68
+
69
+ if fetch(:t3_store_db_credentials_in_addionalconf)
70
+ system "echo ' $GLOBALS[\"TYPO3_CONF_VARS\"][\"DB\"][\"database\"] = \"#{fetch(:dbname)}\";' >> dummy/typo3conf/AdditionalConfiguration.php"
71
+ system "echo ' $GLOBALS[\"TYPO3_CONF_VARS\"][\"DB\"][\"host\"] = \"#{fetch(:dbhost)}\";' >> dummy/typo3conf/AdditionalConfiguration.php"
72
+ system "echo ' $GLOBALS[\"TYPO3_CONF_VARS\"][\"DB\"][\"password\"] = \"#{fetch(:dbpass)}\";' >> dummy/typo3conf/AdditionalConfiguration.php"
73
+ system "echo ' $GLOBALS[\"TYPO3_CONF_VARS\"][\"DB\"][\"username\"] = \"#{fetch(:dbuser)}\";' >> dummy/typo3conf/AdditionalConfiguration.php"
74
+ else
75
+ cmd1 =Typo3Helper::make_set_localconf_database_settings_command(fetch(:dbname),fetch(:dbuser),fetch(:dbpass),fetch(:dbhost))
76
+ system "cd #{fetch(:deploy_to)} && #{cmd1}"
77
+
78
+ cmd2 = "mv #{fetch(:typo3_v6_local_conf_path)}.tmp #{fetch(:typo3_v6_local_conf_path)}"
79
+ system "cd #{fetch(:deploy_to)} && #{cmd2}"
80
+ end
81
+ end
82
+
60
83
  desc "update LocalConf with correct db credentionals"
61
84
  task :update_localconf do
62
85
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Typo3
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-typo3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pim Snel
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2021-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,7 +106,7 @@ homepage: https://github.com/Lingewoud/capistrano-typo3
106
106
  licenses:
107
107
  - MIT
108
108
  metadata: {}
109
- post_install_message:
109
+ post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib
@@ -121,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.0.3
125
- signing_key:
124
+ rubygems_version: 3.1.4
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: Capistrano 3 tasks and CI for TYPO3
128
128
  test_files: []