bard 1.0.3 → 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: 911b2ae8bf5420aa572a4154235d208377016c5567909fb1dc23d57d20ac276e
4
- data.tar.gz: c2cb50a1b72ef2c4a3efcd7a82c52dd7b42f5085ab4d1d40a24ca941c30df451
3
+ metadata.gz: 02e64487d18917a07903bf229f7d75c39c78bffa186e413fd7f43559c0bc1360
4
+ data.tar.gz: 78ceaef22043bf34ec0a17502911418b295955f2beb18fcad85b86319d468c1f
5
5
  SHA512:
6
- metadata.gz: a1c7625f9762e9ca2b2ab19de7362405a46f12c8cbe4c8489cef98c0d4c256850faae9ce9a98df72ecf4dc31c090d02f1186ee34b410929450d304a61ab789d1
7
- data.tar.gz: 3a7520d91ebe6a6f771dbdac08661c20109ca713328c9acb5f0fa1c86e136718d99c997a64232e8f7e1e3681b9ccec22c9fe737387eb70fabc8c63c71c87722d
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/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "1.0.3"
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel