capistrano-rails-console 0.3.0 → 0.4.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93b831b584f2df911aca68f8838b65087614d2ae
|
4
|
+
data.tar.gz: b41820dbd0f4495868a68570aaffde6d167a295a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f5e4d30c21ed8be816279a0fcb8ce52d566a9e5227d28864d98e1e0620662a97474536f22b5488f4e281253d287a06a1ceb9aafc2b032ce65158446ab98077b
|
7
|
+
data.tar.gz: dee8c6a1eb6a215ecb1f36fc9e6d3d550b55a9d13ac29939f0e6674183e78a6519a243d4a5274ebbb3f03875c5611f3638fecdc6718135bd112f46b41af0577b
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'capistrano', '>= 3.0.0'
|
21
|
+
spec.add_dependency 'capistrano', '>= 3.0.0', '< 4.0.0'
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
24
|
spec.add_development_dependency 'rake'
|
@@ -3,7 +3,7 @@ namespace :load do
|
|
3
3
|
# add rails to rvm_map_bins
|
4
4
|
rvm_map_bins = fetch(:rvm_map_bins) || []
|
5
5
|
rvm_map_bins << :rails
|
6
|
-
set
|
6
|
+
set(:rvm_map_bins, rvm_map_bins)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
@@ -12,13 +12,21 @@ namespace :rails do
|
|
12
12
|
desc "Interact with a remote rails console"
|
13
13
|
task console: ['deploy:set_rails_env'] do
|
14
14
|
on primary :app do |host|
|
15
|
+
ssh_cmd_options = []
|
16
|
+
|
17
|
+
if host.ssh_options && host.ssh_options[:proxy]
|
18
|
+
template = host.ssh_options[:proxy].command_line_template
|
19
|
+
ssh_cmd_options << "-o ProxyCommand=\"#{template}\""
|
20
|
+
end
|
21
|
+
|
22
|
+
ssh_cmd_options_str = ssh_cmd_options.join(' ') if ssh_cmd_options.size > 0
|
15
23
|
user_host = [host.user, host.hostname].compact.join('@')
|
16
|
-
ssh_cmd = "ssh #{user_host} -p #{host.port || 22}"
|
24
|
+
ssh_cmd = "ssh #{ssh_cmd_options_str} #{user_host} -p #{host.port || 22}"
|
17
25
|
|
18
|
-
cmd = SSHKit::Command.new(:rails, "console #{fetch
|
26
|
+
cmd = SSHKit::Command.new(:rails, "console #{fetch(:rails_env)}", host: host)
|
19
27
|
SSHKit.config.output << cmd
|
20
28
|
|
21
|
-
exec
|
29
|
+
exec(%Q(#{ssh_cmd} -t "cd #{current_path} && (#{cmd.environment_string} #{cmd})"))
|
22
30
|
end
|
23
31
|
end
|
24
32
|
|
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: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Schwab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.0.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 3.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
110
|
version: '0'
|
105
111
|
requirements: []
|
106
112
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.4.
|
113
|
+
rubygems_version: 2.4.5
|
108
114
|
signing_key:
|
109
115
|
specification_version: 4
|
110
116
|
summary: Remote rails console for capistrano
|