dogids-cli 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/dogids/ssh.rb +1 -3
- data/lib/dogids/ssh/development.rb +1 -8
- data/lib/dogids/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f92adf8b306ac327e96c9858995d75ba71d880a4
|
4
|
+
data.tar.gz: bab6e4f8879fd69bcd710a935e8c4e1e7a3d3d2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c75d2959c9658db2610d33f0e10db178c80aaba1d89fe89798157ff6a2ad1e89f77db4b51e85e8c81942b7ab2b03ef02101a5d1df0f056d8907728614fe00ac
|
7
|
+
data.tar.gz: 3b6f3bcc2043460417757a378862ebb0db85490c0eecb8647ffb46aa7ad564d3b829cb4f757ce403108489118f27db4371ff1a3bd7204714a28cdf74eb0ffc99
|
data/README.md
CHANGED
data/lib/dogids/ssh.rb
CHANGED
@@ -10,9 +10,7 @@ module Dogids
|
|
10
10
|
ssh_development(vm_name)
|
11
11
|
else
|
12
12
|
puts "Development SSH Commands:"
|
13
|
-
puts " dogids ssh
|
14
|
-
puts " dogids ssh web # SSH into local Apache/PHP VM"
|
15
|
-
puts " dogids ssh worker # SSH into local Ruby/Sidekiq VM"
|
13
|
+
puts " dogids ssh dev # SSH into local development VM"
|
16
14
|
puts " "
|
17
15
|
puts "Production SSH Commands:"
|
18
16
|
puts " dogids ssh:production db # SSH into production MySQL/Redis VM"
|
@@ -4,16 +4,9 @@ module Dogids
|
|
4
4
|
class Cli < Thor
|
5
5
|
no_commands do
|
6
6
|
def ssh_development(vm_name = nil)
|
7
|
-
|
8
|
-
when "db"
|
9
|
-
puts "Running: ssh -R 52698:localhost:52698 dogids@55.55.55.10"
|
10
|
-
exec("ssh -R 52698:localhost:52698 dogids@55.55.55.10")
|
11
|
-
when "web"
|
7
|
+
if vm_name == "dev"
|
12
8
|
puts "Running: ssh -R 52698:localhost:52698 dogids@55.55.55.20"
|
13
9
|
exec("ssh -R 52698:localhost:52698 dogids@55.55.55.20")
|
14
|
-
when "worker"
|
15
|
-
puts "Running: ssh -R 52698:localhost:52698 dogids@55.55.55.30"
|
16
|
-
exec("ssh -R 52698:localhost:52698 dogids@55.55.55.30")
|
17
10
|
else
|
18
11
|
ssh
|
19
12
|
end
|
data/lib/dogids/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dogids-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pattison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|