db_tunnel 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/db_tunnel/version.rb +1 -1
- data/lib/tasks/db_tunnel.rake +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4bb99f687ac38c51e580ff20759729181d80998db4f7c6ff637a35d5a7472c0
|
|
4
|
+
data.tar.gz: 15859d2ac9cb8d72c39f86531d386e5c6171570e39c5f62214a2f9e92ce584fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1196a4963a0ce2f3c9ecbcf6182316c6b70e36491a9210d4d3d842fe8b824048bd0e5137f3a4406d15ad3f1f16195c88f603f5bfb929ef05a1f8c28af6d4cf13
|
|
7
|
+
data.tar.gz: 9b62bf387b55b7d471564f95bd177d6398473d63492b71f9277da3ec67b9dabd8f5d5108a7852a661b5b0013a1557ef63f2335bda51559c502c36d778e424734
|
data/lib/db_tunnel/version.rb
CHANGED
data/lib/tasks/db_tunnel.rake
CHANGED
|
@@ -10,12 +10,12 @@ namespace :db_tunnel do
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
desc "db_tunnel:check[<ip>] - check db connection with a query"
|
|
13
|
-
task check: :environment do
|
|
13
|
+
task :check, [:tunnel_host] => :environment do |task, args|
|
|
14
14
|
DbTunnel::DbSync.new(tunnel_host: args[:tunnel_host]).tunnel_check
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
desc "db_tunnel:clone_db[<ip>] - copy db from staging to local"
|
|
18
|
-
task clone_db: :environment do
|
|
18
|
+
task :clone_db, [:tunnel_host] => :environment do |task, args|
|
|
19
19
|
DbTunnel::DbSync.new(tunnel_host: args[:tunnel_host]).execute(from: :tunnel_staging, to: :local)
|
|
20
20
|
end
|
|
21
21
|
end
|