capistrano-typo3 0.4.1 → 0.4.2

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
  SHA1:
3
- metadata.gz: 588dd24bea16f6f6de4ab80414bb9ad0a2dd0c17
4
- data.tar.gz: 95babcf6d87cbdfee768d92f970b0355cb0fec13
3
+ metadata.gz: f20710709451fa8ed420e6d7cc7a997ebf9413a6
4
+ data.tar.gz: df8b2c411e3c081b957a5dc9914b81b28a56506b
5
5
  SHA512:
6
- metadata.gz: ed72153449a6c86783174217ace46945859326f39e07544ff8c16619187643933d3d58c2654c32b40d0b956db2257a23729a16b7f0f695c330fb95c62a8da886
7
- data.tar.gz: adc2083a1142d20396b8567ddd95b6d069e346b65fb70d2140f6065e6dae261a459e1add752438685392f78ea2410dfdbed24b424ea3ea90a3707257ecd97479
6
+ metadata.gz: 0557ee4a2d9b0b1dbc2933817a2bbfe9daf9cb49d7ea38d5c5b116ccd5419fe8f0709b34db4b1c499adb98ea33dd38eea51696d1bd8f39b4ae17addbd5fea0ad
7
+ data.tar.gz: 0c90680b8bfdbe067356270fcfee1a5f284002e4be2956f34a32ad57669ace31865ebe6d2392cd60f0fe97bd56665b6d0378610dbc3b9a99acd9116cd309acbe
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # CHANGELOG
2
+ ## capistrano-typo3 0.3.2
3
+ - make mysql dump transfer possible on same server with different users
2
4
 
3
5
  ## capistrano-typo3 0.3.2
4
6
  - hotfix wrong additional path
@@ -125,7 +125,7 @@ namespace :typo3 do
125
125
  -h#{fetch(:t3_live_sync)['dbsync']['dbhost']} \
126
126
  -p#{fetch(:t3_live_sync)['dbsync']['dbpass']} \
127
127
  #{ignorestring} \
128
- #{fetch(:t3_live_sync)['dbsync']['dbname']} > /tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']}'
128
+ #{fetch(:t3_live_sync)['dbsync']['dbname']} > /tmp/.captypo3dump-src-#{fetch(:t3_live_sync)['dbsync']['dbname']}'
129
129
  DBSYNC1
130
130
 
131
131
  if(:t3_db_sync_ignore_tables)
@@ -137,7 +137,7 @@ DBSYNC1
137
137
  -h#{fetch(:t3_live_sync)['dbsync']['dbhost']} \
138
138
  -p#{fetch(:t3_live_sync)['dbsync']['dbpass']} \
139
139
  --no-data \
140
- #{fetch(:t3_live_sync)['dbsync']['dbname']} #{ignore_tbl} >> /tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']}'
140
+ #{fetch(:t3_live_sync)['dbsync']['dbname']} #{ignore_tbl} >> /tmp/.captypo3dump-src-#{fetch(:t3_live_sync)['dbsync']['dbname']}'
141
141
  DBSYNC1
142
142
  end
143
143
  end
@@ -145,30 +145,30 @@ DBSYNC1
145
145
  # COMPRESS IMAGE
146
146
  execute <<DBSYNC2
147
147
  ssh #{fetch(:t3_live_sync)['dbsync']['ssh_user']}@#{fetch(:t3_live_sync)['dbsync']['ssh_server']} \
148
- 'gzip -f /tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']}'
148
+ 'gzip -f /tmp/.captypo3dump-src-#{fetch(:t3_live_sync)['dbsync']['dbname']}'
149
149
  DBSYNC2
150
150
 
151
151
  # TRANSFER IMAGE
152
152
  execute <<DBSYNC3
153
- scp #{fetch(:t3_live_sync)['dbsync']['ssh_user']}@#{fetch(:t3_live_sync)['dbsync']['ssh_server']}:/tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']}.gz \
154
- /tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']}.gz
153
+ scp #{fetch(:t3_live_sync)['dbsync']['ssh_user']}@#{fetch(:t3_live_sync)['dbsync']['ssh_server']}:/tmp/.captypo3dump-src-#{fetch(:t3_live_sync)['dbsync']['dbname']}.gz \
154
+ /tmp/.captypo3dump-dest-#{fetch(:t3_live_sync)['dbsync']['dbname']}.gz
155
155
  DBSYNC3
156
156
 
157
157
  # DECOMPRESS IMAGE
158
158
  execute <<DBSYNC4
159
- gunzip -f /tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']}.gz
159
+ gunzip -f /tmp/.captypo3dump-dest-#{fetch(:t3_live_sync)['dbsync']['dbname']}.gz
160
160
  DBSYNC4
161
161
 
162
162
  # IMPORT AND REMOVE IMAGE
163
163
  execute <<DBSYNC5
164
- mysql -u#{fetch(:dbuser)} -h#{fetch(:dbhost)} -p#{fetch(:dbpass)} #{fetch(:dbname)} < /tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']} && \
165
- rm -f /tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']}
164
+ mysql -u#{fetch(:dbuser)} -h#{fetch(:dbhost)} -p#{fetch(:dbpass)} #{fetch(:dbname)} < /tmp/.captypo3dump-dest-#{fetch(:t3_live_sync)['dbsync']['dbname']} && \
165
+ rm -f /tmp/.captypo3dump-dest-#{fetch(:t3_live_sync)['dbsync']['dbname']}
166
166
  DBSYNC5
167
167
 
168
168
  # REMOVE IMAGE
169
169
  execute <<DBSYNC6
170
170
  ssh #{fetch(:t3_live_sync)['dbsync']['ssh_user']}@#{fetch(:t3_live_sync)['dbsync']['ssh_server']} \
171
- 'rm -f /tmp/.captypo3dump-#{fetch(:t3_live_sync)['dbsync']['dbname']}.gz'
171
+ 'rm -f /tmp/.captypo3dump-src-#{fetch(:t3_live_sync)['dbsync']['dbname']}.gz'
172
172
  DBSYNC6
173
173
  end
174
174
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Typo3
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pim Snel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler