sshort 0.1.1 → 0.1.2

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: 8463a0bc2c7645c2ba09f566473b9a4fded6d5b7
4
- data.tar.gz: 4fb0174762ddf8f21786bff168d8466696aa3c93
3
+ metadata.gz: 960014d2946bf752cb4607ac80b04df1e1c49a0e
4
+ data.tar.gz: 7bdeca8cfe30457e90037d4f43bc864bba8590f1
5
5
  SHA512:
6
- metadata.gz: 5bd7ef1eff5f962a496fee29ccdae24470ba7dfe6449b5da15130ce519de9a18b4d33c2e36ebf774482302973218114dce7416279e3b7b473544d65640a73573
7
- data.tar.gz: a9349a4f41e97a163f2b6db6c950e30535267d4c5be6fb277c63b5db0a0d7e3dae0045222e3f92ab5a8ece8cc460beb0eedb5f8e742329669610e91ce7a24ad1
6
+ metadata.gz: 283f3c557657a253b2e9d059f1f9ff76c0be2928ffece860a44cd1a052c38ac301de96d3c01562db25ac7393167522ab83189be081587b831cb2dcaeed93de42
7
+ data.tar.gz: 7d46052def17f20e2c09e1ae4b3a468771cba8b9764832dcfba4af7708990555f59b163fb6b6b9f009f3e6d062b6f83bbc43d2b6684586cdfd6545c3bdded346
@@ -1,3 +1,3 @@
1
1
  module Sshort
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -16,7 +16,8 @@ task :ssh do
16
16
  end
17
17
 
18
18
  puts "Connecting to #{current_server.hostname}..."
19
- ssh_command = "ssh -p #{current_server.port || 22} #{current_server.user}@#{current_server.hostname}"
20
- cd_command = "cd #{fetch(:deploy_to)}/#{fetch(:current_dir)} && bash"
19
+ port = current_server.port || fetch(:ssh_options, {})[:port] || 22
20
+ ssh_command = "ssh -p #{port} #{current_server.user}@#{current_server.hostname}"
21
+ cd_command = "cd #{fetch(:deploy_to)} && bash"
21
22
  system "#{ssh_command} -t \"#{cd_command}\""
22
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Railsmuffin LLC.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-15 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano