dogids-cli 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dogids/ssh.rb +1 -0
- data/lib/dogids/ssh/production.rb +3 -0
- data/lib/dogids/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97bf71642f21a1667aed3acd02421810c7812600
|
4
|
+
data.tar.gz: 69b2c567a3338810f64021c54170f56d51b94bf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0139e79a36cb0979e8ef8fa1c80702ade62a0867b2771c1c88b4b317dbb11cf3a0835375dff51cf230e13b13f03ddd906de3c74054481e3c81b1daf57a5c00d
|
7
|
+
data.tar.gz: 26d60e3714113320a02ba12267c42a1cb784fa47916a38c84b7d6d9a0f966cf3a297461a0fc196dd00bbcee13b634d77917e925822308bd19260d40030dbe8f2
|
data/lib/dogids/ssh.rb
CHANGED
@@ -20,6 +20,7 @@ module Dogids
|
|
20
20
|
puts " dogids ssh staging # SSH into staging Apache/PHP/MySQL VM"
|
21
21
|
puts " "
|
22
22
|
puts "Production SSH Commands:"
|
23
|
+
puts " dogids ssh:production admin # SSH into VM for long running admin processes"
|
23
24
|
puts " dogids ssh:production db # SSH into production MySQL/Redis VM"
|
24
25
|
puts " dogids ssh:production web # SSH into production Apache/PHP VM"
|
25
26
|
puts " dogids ssh:production worker # SSH into production Ruby/Sidekiq VM"
|
@@ -5,6 +5,9 @@ module Dogids
|
|
5
5
|
no_commands do
|
6
6
|
def ssh_production(vm_name = nil)
|
7
7
|
case vm_name
|
8
|
+
when "admin"
|
9
|
+
puts "Running: `ssh -R 52698:localhost:52698 dogids@admin.dogids.codelation.net`"
|
10
|
+
exec("ssh -R 52698:localhost:52698 dogids@admin.dogids.codelation.net")
|
8
11
|
when "db"
|
9
12
|
puts "Running: `ssh -R 52698:localhost:52698 dogids@db1.dogids.codelation.net`"
|
10
13
|
exec("ssh -R 52698:localhost:52698 dogids@db1.dogids.codelation.net")
|
data/lib/dogids/version.rb
CHANGED