capistrano-rails-console 0.4.0 → 0.5.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 +4 -4
- data/README.md +13 -3
- data/lib/capistrano/rails/console/tasks/remote.cap +2 -1
- data/lib/capistrano/rails/console/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50d8c679e2f48d5fbb32f8fc35ef351607f007f4
|
|
4
|
+
data.tar.gz: 373cfad2bf3f0d63ce2c322b0fa9ae1294068837
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9978d793aec89b6c2d21d72ad83dc52055660303e3e09464e12e316f7459cdaa2412193a5923f95c5cb491f4a8239a4b25ff7ef014318a38a1ae4632e9b49b9
|
|
7
|
+
data.tar.gz: 6130b613bd573f892e7031de8f83cbf173d341bd664af58da65ea048d3564a0595e27561ec472befc1b7c47db1202ce0e2996442810a262c97c084851b910350
|
data/README.md
CHANGED
|
@@ -6,8 +6,9 @@ Remote rails console for capistrano
|
|
|
6
6
|
|
|
7
7
|
Add this line to your application's Gemfile:
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
```ruby
|
|
10
|
+
gem 'capistrano-rails-console'
|
|
11
|
+
```
|
|
11
12
|
|
|
12
13
|
And then execute:
|
|
13
14
|
|
|
@@ -21,7 +22,9 @@ Or install it yourself as:
|
|
|
21
22
|
|
|
22
23
|
Require in `Capfile` to use the default task:
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
```ruby
|
|
26
|
+
require 'capistrano/rails/console'
|
|
27
|
+
```
|
|
25
28
|
|
|
26
29
|
This will add a task `rails:console`:
|
|
27
30
|
|
|
@@ -34,3 +37,10 @@ This will add a task `rails:console`:
|
|
|
34
37
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
35
38
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
36
39
|
5. Create new Pull Request
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
[](https://rubygems.org/gems/capistrano-rails-console)
|
|
45
|
+
[](https://gemnasium.com/ydkn/capistrano-rails-console)
|
|
46
|
+
[](https://codeclimate.com/github/ydkn/capistrano-rails-console)
|
|
@@ -23,7 +23,8 @@ namespace :rails do
|
|
|
23
23
|
user_host = [host.user, host.hostname].compact.join('@')
|
|
24
24
|
ssh_cmd = "ssh #{ssh_cmd_options_str} #{user_host} -p #{host.port || 22}"
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
sandbox_arg = ENV.key?('sandbox') || ENV.key?('s') ? '-s' : ''
|
|
27
|
+
cmd = SSHKit::Command.new(:rails, "console #{fetch(:rails_env)} #{sandbox_arg}", host: host)
|
|
27
28
|
SSHKit.config.output << cmd
|
|
28
29
|
|
|
29
30
|
exec(%Q(#{ssh_cmd} -t "cd #{current_path} && (#{cmd.environment_string} #{cmd})"))
|
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.5.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: 2015-
|
|
11
|
+
date: 2015-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
110
110
|
version: '0'
|
|
111
111
|
requirements: []
|
|
112
112
|
rubyforge_project:
|
|
113
|
-
rubygems_version: 2.4.
|
|
113
|
+
rubygems_version: 2.4.6
|
|
114
114
|
signing_key:
|
|
115
115
|
specification_version: 4
|
|
116
116
|
summary: Remote rails console for capistrano
|