capistrano-rails-console 1.0.1 → 1.0.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: a9d608f1f9221df4040a4d831ec380c9f567c258
4
- data.tar.gz: c28b59a23d2aad86ff84bd14f6f9e2b3cbbb5d45
3
+ metadata.gz: 28df9dd56e64741c6c5fbf00e96e0657ec1ee9dc
4
+ data.tar.gz: b0f6f288d6a2e6cc3a3c4ab89ca469721d572ebb
5
5
  SHA512:
6
- metadata.gz: 7c31f0106c18eb5291fb4d7a1414fcb4697ea607b59221c452dd241216aa2ce18db8b3b5834a2b6bc3043dfc6917f452e457ecb640b5f15733fc175dec64c7c7
7
- data.tar.gz: 21e952d7702883d0d3bcdda183397ef2dd0b7a4ac8d7e09c8cacddd844e89532a5ed5fb6191dc3fc630d966d283fc28c98cf398ff6c4c5e5b681696e943081fa
6
+ metadata.gz: fe29712b0796ee81a00c1ae34302de5eb892430a52ca36eb7663a72adbc8a0c78cf80d110e4c0daf645b0073155ebd010f26187e2911674d1e67f7cd02ed3bf0
7
+ data.tar.gz: a8819ba78eb4d1b7c82a58a413f4e0fd5a8cf5c08e0e686458cfef5079c72c3e59752bce77258b0dbf8aace13ee71da64b5c8907535c66e7185c13a0e03aa146
@@ -1,6 +1,10 @@
1
1
  # Change Log
2
2
 
3
- ## 1.0.0 (2015-11-12)
3
+ ## 1.0.2 (2015-12-06)
4
+ ### Fixed
5
+ - works with sshkit 1.8
6
+
7
+ ## 1.0.1 (2015-11-12)
4
8
  ### Fixed
5
9
  - setting ssh hostname through `ssh_options`
6
10
  - use login shell
@@ -27,9 +27,6 @@ namespace :rails do
27
27
 
28
28
  rails_env = fetch(:rails_env, fetch(:stage, 'production'))
29
29
 
30
- cmd = SSHKit::Command.new(:rails, :console, rails_env, *rails_console_args, host: host)
31
- SSHKit.config.output << cmd
32
-
33
30
  port = host.port || (host.ssh_options || {})[:port]
34
31
  ssh_cmd_args << "-p #{port}" if port
35
32
 
@@ -45,9 +42,11 @@ namespace :rails do
45
42
  ssh_cmd_args << "-i #{identity}"
46
43
  end
47
44
 
45
+ cmd = SSHKit::Command.new(:rails, :console, rails_env, *rails_console_args, host: host)
46
+
48
47
  ssh_cmd = %Q(ssh #{ssh_cmd_args.join(' ')} -t '$SHELL -l -c "cd #{current_path} && (#{cmd.environment_string} #{cmd})"')
49
48
 
50
- debug("Running #{ssh_cmd.yellow} on #{host.hostname.blue}")
49
+ debug("Running #{ssh_cmd} on #{host.hostname}")
51
50
 
52
51
  exec(ssh_cmd)
53
52
  end
@@ -5,7 +5,7 @@ module Capistrano
5
5
  # Console
6
6
  module Console
7
7
  # gem version
8
- VERSION = '1.0.1'
8
+ VERSION = '1.0.2'
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rails-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Schwab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2015-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano