bard 1.0.2 → 1.0.4

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: 5827b2cb31e34dfbdf111fbdfd52226e5440c3c747de441b8c70bb24a4de9309
4
- data.tar.gz: 4a8664eebd8bed4cfdd1fdb85938dbe1356817e5ea21f159c7919bb3be0a8f63
3
+ metadata.gz: 02e64487d18917a07903bf229f7d75c39c78bffa186e413fd7f43559c0bc1360
4
+ data.tar.gz: 78ceaef22043bf34ec0a17502911418b295955f2beb18fcad85b86319d468c1f
5
5
  SHA512:
6
- metadata.gz: 04fc3e6e447298b74e73262a30bb188845ec86f39a63779437fb1a43d6b7a9bc2fbb9ced0e6c99df681704370f42526674d9c0d4cc83f12e0da09782c7bddd0a
7
- data.tar.gz: 54c654366cb8400bd5a7549b586662617e236bd96f9c48f299776d0454eafeb6b9a75a468582999fc4d88cfddb3856637cb9f3e6973adec2342944bda5d63eb0
6
+ metadata.gz: 8cc63bf55fc0ab55ce704e40a7e55d30b0c4c29c25d8667b92bd0d0d1cfa606ef6f29c38437ec1f8d35d1459447d9832d409db31f981aa35db9f2642ce6a0fe5
7
+ data.tar.gz: a1c839d0a04e5f63a970c7480116385e51e1490dc009ae54d33d81ab63e209b606f9ae20d0055e65aba16d2668a7ce013bf80de10284d9f0b3eb1b220ae17d8f
data/lib/bard/command.rb CHANGED
@@ -51,7 +51,6 @@ module Bard
51
51
  end
52
52
 
53
53
  def remote_command quiet: false
54
- ssh_key = on.ssh_key ? "-i #{on.ssh_key} " : ""
55
54
  cmd = command
56
55
  if on.env
57
56
  cmd = "#{on.env} #{command}"
@@ -59,11 +58,10 @@ module Bard
59
58
  unless home
60
59
  cmd = "cd #{on.path} && #{cmd}"
61
60
  end
62
- uri = on.ssh_uri
63
- cmd = "ssh -tt #{ssh_key} -p#{uri.port} #{uri.user}@#{uri.host} '#{cmd}'"
61
+ ssh_key = on.ssh_key ? "-i #{on.ssh_key} " : ""
62
+ cmd = "ssh -tt #{ssh_key} #{on.ssh_uri} '#{cmd}'"
64
63
  if on.gateway
65
- uri = on.ssh_uri(:gateway)
66
- cmd = "ssh -tt -p#{uri.port} #{uri.user}@#{uri.host} \"#{cmd}\""
64
+ cmd = "ssh -tt #{on.ssh_uri(:gateway)} \"#{cmd}\""
67
65
  end
68
66
  cmd += " 2>&1" if quiet
69
67
  cmd
data/lib/bard/git.rb CHANGED
@@ -19,8 +19,6 @@ module Bard
19
19
  sha_of(branch) == sha_of("origin/#{branch}")
20
20
  end
21
21
 
22
- private
23
-
24
22
  def sha_of ref
25
23
  `git rev-parse #{ref}`.chomp
26
24
  end
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.4"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel