capistrano-db-sync 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +7 -0
- data/capistrano-db-sync.gemspec +4 -4
- data/lib/capistrano/tasks/db.rake +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8d6b3c0a475036081cec3bd80e93bf91b34b8a48ae41498a589a1644f59da62b
|
4
|
+
data.tar.gz: 85a7286745a761d5cee22e0079c162415a040675feacb585cb12815a4d04c850
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dc0fa8a84352622af8d8964529043376656b43022a03bb78012dade20210edb778d5aa23fcedfa8f103817cddf469d2bcd0064a18625f544c8cdc1f5b60fa73
|
7
|
+
data.tar.gz: 1324c570c5fd9f397261be69a12cebb43243cc394aa08a430566e3e21f0e3e5584884670933b9f8fb3c5e8d0d0a4ae59786424d4e9bb6e9ea22bb7e8eeb443c1
|
data/README.md
CHANGED
data/capistrano-db-sync.gemspec
CHANGED
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano-db-sync'
|
7
|
-
spec.version = '0.0.
|
8
|
-
spec.date = Date.today.to_s
|
9
|
-
spec.summary = "Capistrano synchronization databases task"
|
10
|
-
spec.description = "Capistrano synchronization task for syncing databases between the local development environment and different multi_stage environments"
|
7
|
+
spec.version = '0.0.15'
|
11
8
|
spec.authors = ["Albuisson Stéphane"]
|
12
9
|
spec.email = 'stephane.albuisson@gmail.com'
|
10
|
+
|
11
|
+
spec.summary = "Capistrano synchronization databases task"
|
12
|
+
spec.description = "Capistrano synchronization task for syncing databases between the local development environment and different multi_stage environments"
|
13
13
|
spec.files = `git ls-files`.split("\n")
|
14
14
|
spec.homepage = 'http://www.stephane-albuisson.com'
|
15
15
|
spec.license = 'MIT'
|
@@ -21,6 +21,11 @@ namespace :db do
|
|
21
21
|
username, password, database, host = database_config('development')
|
22
22
|
system "mysqldump -u #{username} --password=#{password} #{database} > #{filename}"
|
23
23
|
|
24
|
+
# On remplace l'url locale par l'url distante
|
25
|
+
text = File.read(filename)
|
26
|
+
content = text.gsub(/#{fetch(:local_url)}/, fetch(:remote_url))
|
27
|
+
File.open(filename, "w") { |file| file << content }
|
28
|
+
|
24
29
|
# Export du fichier SQL
|
25
30
|
upload! filename, "#{shared_path}/sync/#{filename}"
|
26
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-db-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albuisson Stéphane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.6
|
63
|
+
rubygems_version: 2.7.6
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Capistrano synchronization databases task
|