con_ssh 0.0.8 → 0.1.0

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
  SHA1:
3
- metadata.gz: ae94bd1c878bef91d6a4bb588c21f7c616a81bc4
4
- data.tar.gz: 54b48bb84d2c97d56be2e9a57b67fbb5dcf392bf
3
+ metadata.gz: e81b81de0004cb67ca7131245c79d01972a0867e
4
+ data.tar.gz: d85003e605017eeac6ee5e0998a219c44397195d
5
5
  SHA512:
6
- metadata.gz: 1bebb9486bc9aef766c69e7d620875fe188a46994897631f79eaecf8dc74de0411f97a4b9fb2c3096a749bcc42fb6fe5e05dbc613c951928394eac32d3632969
7
- data.tar.gz: 5b5a8f9f5ce0fd34ff03ca3c085635c9a77baa845c4d080b2be6a7ee431520cc56fd1156bedc3da903fe4fa97211227063d2634710cd7be07a38d2f0bccc389a
6
+ metadata.gz: 1379b13ad32437cf1fb57ae6048889919ae434a2e0d4d1f57a59f72ef85a1fd6fb18a665002324b8bb716c05ed54f43d313e07988f7a928f0775fcd92b8e226a
7
+ data.tar.gz: b4d5a31ab2adc09657ba471c5c20c11f4e983a1a12ca5be45ee79b3ed5e888257008baf02d159ebe1a43cd2e397b5b1bbfac30f1f866c1de434256031ffd6318
data/con_ssh.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "con_ssh"
3
- s.version = "0.0.8"
3
+ s.version = "0.1.0"
4
4
  s.authors = ["Tom Lobato"]
5
5
  s.email = "lobato@bettercall.io"
6
6
  s.homepage = "https://tomlobato.github.io/con_ssh/"
data/lib/con_ssh.rb CHANGED
@@ -62,9 +62,19 @@ class SSHCon
62
62
  def ssh c
63
63
  port = (c.port && c.port != DEFAULT_PORT) ? "-p #{ c.port } " : ''
64
64
  user = c.user ? "#{ c.user }@" : ''
65
- knock c.host, c.knock if c.knock
65
+
66
+ if c.knock
67
+ puts "knock`ing"
68
+ knock c.host, c.knock
69
+ sleep 1
70
+ end
71
+
66
72
  system "ssh #{port}#{user}#{c.host}"
67
- knock c.host, c.unknock if c.unknock
73
+
74
+ if c.unknock
75
+ puts "unknock`ing"
76
+ knock c.host, c.unknock
77
+ end
68
78
  end
69
79
 
70
80
  def knock host, ports
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: con_ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lobato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-23 00:00:00.000000000 Z
11
+ date: 2017-06-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: SSH cli wrapper..
14
14
  email: lobato@bettercall.io
@@ -20,7 +20,6 @@ files:
20
20
  - ".codeclimate.yml"
21
21
  - ".gitignore"
22
22
  - ".rubocop-custom.yml"
23
- - ".ruby-version"
24
23
  - Gemfile
25
24
  - Gemfile.lock
26
25
  - README.md
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.3.0