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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02edf61946ca0300fc75e11a65aae3d96c3ddf196a572befa1015be3959b1050
4
- data.tar.gz: 0ef74cb1165a3019adc255ef9283095c9aa07525ae972a6af3a630d28f9c6a60
3
+ metadata.gz: e4bb99f687ac38c51e580ff20759729181d80998db4f7c6ff637a35d5a7472c0
4
+ data.tar.gz: 15859d2ac9cb8d72c39f86531d386e5c6171570e39c5f62214a2f9e92ce584fb
5
5
  SHA512:
6
- metadata.gz: fe09c8f5e0cd3ca4fcb9637a79a30af237638d8dd0673d80d0c45a3f8df7b0c6bee27b047bff9060e45ac317ffa395a4e2f01689427546b773242765c27c7096
7
- data.tar.gz: bd069ef696ba35d270f7b84fdb06ced2a610447e64c7ac7f390a65f4aa5c7b80c81a3c4febfcf67230b192e2fc6cbeb7b973908190f3f58cd79777c8e7ea7342
6
+ metadata.gz: 1196a4963a0ce2f3c9ecbcf6182316c6b70e36491a9210d4d3d842fe8b824048bd0e5137f3a4406d15ad3f1f16195c88f603f5bfb929ef05a1f8c28af6d4cf13
7
+ data.tar.gz: 9b62bf387b55b7d471564f95bd177d6398473d63492b71f9277da3ec67b9dabd8f5d5108a7852a661b5b0013a1557ef63f2335bda51559c502c36d778e424734
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DbTunnel
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_tunnel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harley Trung