bard 1.0.3 → 1.0.5

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: 0e45ecd5905bd4d3b0dcb23787a81fb9262100eacf50bcef98f59bf494df7d97
4
+ data.tar.gz: 00502aa110525a2973d26ba4d3382f57da572a929a8e7b77544e6829b761c94f
5
5
  SHA512:
6
- metadata.gz: a1c7625f9762e9ca2b2ab19de7362405a46f12c8cbe4c8489cef98c0d4c256850faae9ce9a98df72ecf4dc31c090d02f1186ee34b410929450d304a61ab789d1
7
- data.tar.gz: 3a7520d91ebe6a6f771dbdac08661c20109ca713328c9acb5f0fa1c86e136718d99c997a64232e8f7e1e3681b9ccec22c9fe737387eb70fabc8c63c71c87722d
6
+ metadata.gz: 4e549338c287902159c084c7675459e3423d1e9d0c22d371db05a677e8880cf6dbbb4398576beca62cea6e94c9b21ac71e57121d84ae6c3b61c80a6da5c18321
7
+ data.tar.gz: 402a1c103e185fa685d4fcce477ffbd0fd3f25a8ae0be9b99045ac7c22258d7886537f7e19841c03252933de819bd4d7ecbe323d95278bcaab713140501cc53d
data/lib/bard/cli/run.rb CHANGED
@@ -12,7 +12,7 @@ module Bard::CLI::Run
12
12
  desc "run <command>", "run the given command on production"
13
13
  def run *args
14
14
  server = config[:production]
15
- server.run! *args, verbose: true
15
+ server.run! *args.join(" "), verbose: true
16
16
  rescue Bard::Command::Error => e
17
17
  puts red("!!! ") + "Running command failed: #{yellow(e.message)}"
18
18
  exit 1
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.5"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-23 00:00:00.000000000 Z
11
+ date: 2024-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor