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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64a5d9c963f84bbc617a9a3b6544d3f77a1a141c
4
- data.tar.gz: af033189803002cfe5120728a11fd64e2dbbde80
3
+ metadata.gz: 97bf71642f21a1667aed3acd02421810c7812600
4
+ data.tar.gz: 69b2c567a3338810f64021c54170f56d51b94bf7
5
5
  SHA512:
6
- metadata.gz: 71f715e190cbd7b0ed77db5a45dbc35bcd1819d5001efb69e5bd3d7b98864586f2a352b01319f3b20c954a627fe4f2f0f6aa254fde6d6090491a8f226f18d1f2
7
- data.tar.gz: e3a7b07bdad03255a4ea7fdaea46d9360b29cc1ec3d4e00c7445e99005927a865b112fe2479d36bfdef75da4b1283cfa01658f6104c1c4bffd94e1bd09f506f8
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")
@@ -3,7 +3,7 @@ require "open-uri"
3
3
  require "thor"
4
4
 
5
5
  module Dogids
6
- VERSION = "0.0.15"
6
+ VERSION = "0.0.16"
7
7
 
8
8
  class Cli < Thor
9
9
  desc "update", "Update dogids-cli to latest version"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dogids-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison