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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53570093af825496ddb8bacb9febac6e01407e7a
4
- data.tar.gz: 2c76d2ce66616344b3776c8bc6c638cc3671692a
3
+ metadata.gz: f92adf8b306ac327e96c9858995d75ba71d880a4
4
+ data.tar.gz: bab6e4f8879fd69bcd710a935e8c4e1e7a3d3d2e
5
5
  SHA512:
6
- metadata.gz: 9489955e256da702b9227d6b433831b69a3b6b43cceed3d7c300a31ff7535eb288cc2a2e0e47b0544a01a60e1022550648853bb5f50384836a8683e7d15fa239
7
- data.tar.gz: fb4857a22eeec92c058da5d376f1c7c92b05b1588bbb89550299c18f29b5b841688b02fafff6b4af1daf2d50fbb3f044848f77a942949efff83c26b43168bb56
6
+ metadata.gz: 8c75d2959c9658db2610d33f0e10db178c80aaba1d89fe89798157ff6a2ad1e89f77db4b51e85e8c81942b7ab2b03ef02101a5d1df0f056d8907728614fe00ac
7
+ data.tar.gz: 3b6f3bcc2043460417757a378862ebb0db85490c0eecb8647ffb46aa7ad564d3b829cb4f757ce403108489118f27db4371ff1a3bd7204714a28cdf74eb0ffc99
data/README.md CHANGED
@@ -4,8 +4,6 @@ Command line tool for DogIDs tasks.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
8
-
9
7
  ```bash
10
8
  $ gem install dogids-cli
11
9
  ```
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 db # SSH into local MySQL/Redis VM"
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
- case vm_name
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
@@ -3,7 +3,7 @@ require "open-uri"
3
3
  require "thor"
4
4
 
5
5
  module Dogids
6
- VERSION = "0.0.1"
6
+ VERSION = "0.0.2"
7
7
 
8
8
  class Cli < Thor
9
9
  desc "update", "Update dogids-cli to latest version"
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.1
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-17 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor