capistrano-rails-console 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9160f5605b1a062e73f71dbcf4c26b456051c61b
|
4
|
+
data.tar.gz: 586339286e41d0b55c67bf75d97f33ab70996d3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f7c22eedff6e3dbdf1443a129faa6a829a0b294c81d7bd8e8c5ebba0db32a9803bfe0effdf5b3f50122857b039da3a042e829f73e4b9c23fc3319c762b8667
|
7
|
+
data.tar.gz: 4d0252c719a5c3e388adcee3c53e2904a93e958f2d205750e9bc3f583c1a488c4a3d0036248c7e478ee4aa1e6dc1bb0c3688c987742f90a6381e57bcd415a079
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "capistrano-rails-console"
|
8
8
|
spec.version = Capistrano::Rails::Console::VERSION
|
9
9
|
spec.authors = ["Florian Schwab"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["me@ydkn.de"]
|
11
11
|
spec.description = %q{Remote rails console for capistrano}
|
12
12
|
spec.summary = %q{Remote rails console for capistrano}
|
13
13
|
spec.homepage = "https://github.com/ydkn/capistrano-rails-console"
|
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
24
|
spec.add_development_dependency 'rake'
|
25
|
+
spec.add_development_dependency 'yard'
|
25
26
|
end
|
@@ -1 +1 @@
|
|
1
|
-
load File.expand_path(
|
1
|
+
load File.expand_path('../tasks/remote.cap', __FILE__)
|
@@ -2,6 +2,10 @@ def rvm_loaded?
|
|
2
2
|
Gem::Specification::find_all_by_name('capistrano-rvm').any?
|
3
3
|
end
|
4
4
|
|
5
|
+
def rbenv_loaded?
|
6
|
+
Gem::Specification::find_all_by_name('capistrano-rbenv').any?
|
7
|
+
end
|
8
|
+
|
5
9
|
def bundler_loaded?
|
6
10
|
Gem::Specification::find_all_by_name('capistrano-bundler').any?
|
7
11
|
end
|
@@ -20,10 +24,11 @@ namespace :rails do
|
|
20
24
|
|
21
25
|
command = []
|
22
26
|
command << "#{fetch(:rvm_path)}/bin/rvm #{fetch(:rvm_ruby_version)} do" if rvm_loaded?
|
27
|
+
command << "#{ fetch :rbenv_prefix } " if rbenv_loaded?
|
23
28
|
command << "bundle exec" if bundler_loaded?
|
24
29
|
command << "rails console #{fetch(:rails_env)}"
|
25
30
|
|
26
|
-
exec %Q(ssh #{app_server.user}@#{app_server.hostname} -p #{app_server.port || 22} -t "cd #{current_path} && #{command.join(' ')}")
|
31
|
+
exec %Q(ssh #{app_server.netssh_options[:user]}@#{app_server.hostname} -p #{app_server.port || 22} -t "cd #{current_path} && #{command.join(' ')}")
|
27
32
|
end
|
28
33
|
|
29
34
|
end
|
metadata
CHANGED
@@ -1,65 +1,79 @@
|
|
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.2.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: 2014-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
description: Remote rails console for capistrano
|
56
70
|
email:
|
57
|
-
-
|
71
|
+
- me@ydkn.de
|
58
72
|
executables: []
|
59
73
|
extensions: []
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
62
|
-
- .gitignore
|
76
|
+
- ".gitignore"
|
63
77
|
- Gemfile
|
64
78
|
- LICENSE.txt
|
65
79
|
- README.md
|
@@ -80,18 +94,19 @@ require_paths:
|
|
80
94
|
- lib
|
81
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
96
|
requirements:
|
83
|
-
- -
|
97
|
+
- - ">="
|
84
98
|
- !ruby/object:Gem::Version
|
85
99
|
version: '0'
|
86
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
101
|
requirements:
|
88
|
-
- -
|
102
|
+
- - ">="
|
89
103
|
- !ruby/object:Gem::Version
|
90
104
|
version: '0'
|
91
105
|
requirements: []
|
92
106
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.2.2
|
94
108
|
signing_key:
|
95
109
|
specification_version: 4
|
96
110
|
summary: Remote rails console for capistrano
|
97
111
|
test_files: []
|
112
|
+
has_rdoc:
|