deplomat 0.1.7 → 0.1.8

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
  SHA256:
3
- metadata.gz: dbe01ba773bbcd64d26dcde79e074984816494d0111840223e5c19cef8dd8dc8
4
- data.tar.gz: f93e3b3beaa99612c9fc6eac272b00b00017383905197cfaee7121e868473082
3
+ metadata.gz: a070fff3ba8c13d46c60d70a64bb7447e2bb906add40ed17405b3d110d4eceeb
4
+ data.tar.gz: 85cc1dcb4fe7cdd507c9edcef7f68fa33a0c2533ab5d6aa91d69f9bf5266daf7
5
5
  SHA512:
6
- metadata.gz: e188aaa8a668b33d377951ffaf8c539f7fdadd08f3e35429013ac3c38a637723d675b33e0be52d44df38b6c0b10ee8ee513554d3842afba459aaae8c330bd284
7
- data.tar.gz: 328e5d6bd8f29dbed2f195cb67e1f90a2d22d5fba6b3f725bdc6866618d943ed16334386eb8ff7c186e3ce64845511d067c0e91f52168ae285ab1b521ecb6834
6
+ metadata.gz: 6c4e018f50fd7f861337f80c2e544db64cb6c18f10c644fd056c6e17f69547d7c51bc5cccf7f13b7f7aeb07e781982087b3f78662c61466936b6b077d53ba75a
7
+ data.tar.gz: 629ccd23463c44944e0b8d7e6b686d88206e755113e6105f72383c30e847034e86d40753dc5d99467600e6c74ccd9dea716ca606f1ed6fc7c47691f08cbd668b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
data/deplomat.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: deplomat 0.1.6 ruby lib
5
+ # stub: deplomat 0.1.8 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "deplomat"
9
- s.version = "0.1.6"
9
+ s.version = "0.1.8"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -20,11 +20,14 @@ module Deplomat
20
20
  @pids << process.pid.to_i
21
21
  end
22
22
  end
23
- if @pids.length > 1
24
- puts "Connected with ssh, host #{host}, but looks like another connection has been opened before..."
25
- puts "connection pids: #{@pids.join(", ")}. We'll be closing them all when finished."
23
+ if @pids.empty?
24
+ log("ERROR: no ssh pid found for\n\t#{first_ssh_command}.\nThis is weird.", color: "red")
25
+ exit
26
+ elsif @pids.length > 1
27
+ log("Connected with ssh, host #{host}, but looks like another connection has been opened before...", color: "white")
28
+ log("connection pids: #{@pids.join(", ")}. We'll be closing them all when finished.", color: "white")
26
29
  else
27
- puts "Connected with ssh, host #{host}, pid #{@pids.first}"
30
+ log("Connected with ssh, host #{host}, pid #{@pids.first}", color: "white")
28
31
  end
29
32
 
30
33
  @ssh_command = "ssh -S #{ENV['HOME']}/.ssh/controlmasters/%r@%h:%p #{user}@#{host} -p #{port}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deplomat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-06 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sys-proctable