rvm-capistrano 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +4 -0
- data/README.md +9 -0
- data/lib/rvm/capistrano.rb +10 -0
- data/lib/rvm/capistrano/version.rb +1 -1
- metadata +60 -73
data/History.md
CHANGED
data/README.md
CHANGED
@@ -12,6 +12,12 @@ RVM / Capistrano integration is available as a separate gem
|
|
12
12
|
|
13
13
|
$ gem install rvm-capistrano
|
14
14
|
|
15
|
+
Or, if the **capistrano** gem is aleady in your `Gemfile`, then add **rvm-capistrano**:
|
16
|
+
|
17
|
+
$ echo "gem 'rvm-capistrano'" >> Gemfile
|
18
|
+
$ bundle install
|
19
|
+
|
20
|
+
|
15
21
|
## Example
|
16
22
|
|
17
23
|
The following code will:
|
@@ -30,6 +36,7 @@ Example:
|
|
30
36
|
|
31
37
|
require "rvm/capistrano"
|
32
38
|
|
39
|
+
|
33
40
|
## To use the ruby version currently active locally
|
34
41
|
|
35
42
|
set :rvm_ruby_string, :local
|
@@ -41,6 +48,8 @@ $ cap -T rvm
|
|
41
48
|
cap rvm:create_gemset # Create gemset
|
42
49
|
cap rvm:install_ruby # Install RVM ruby to the server, create gemset ...
|
43
50
|
cap rvm:install_rvm # Install RVM of the given choice to the server.
|
51
|
+
cap rvm:install_gem GEM=my_gem # Install gem {my_gem} on the server using selected ruby.
|
52
|
+
cap rvm:uninstall_gem GEM=my_gem # Uninstall gem {my_gem} from the server selected ruby.
|
44
53
|
```
|
45
54
|
|
46
55
|
## Development
|
data/lib/rvm/capistrano.rb
CHANGED
@@ -153,6 +153,16 @@ module Capistrano
|
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
156
|
+
desc "Install a gem, 'cap rvm:install_gem GEM=my_gem'."
|
157
|
+
task :install_gem do
|
158
|
+
run "#{File.join(rvm_bin_path, "rvm")} #{rvm_ruby_string} do gem install #{ENV['GEM']}", :shell => "#{rvm_install_shell}"
|
159
|
+
end
|
160
|
+
|
161
|
+
desc "Uninstall a gem, 'cap rvm:uninstall_gem GEM=my_gem'."
|
162
|
+
task :uninstall_gem do
|
163
|
+
run "#{File.join(rvm_bin_path, "rvm")} #{rvm_ruby_string} do gem uninstall --no-executables #{ENV['GEM']}", :shell => "#{rvm_install_shell}"
|
164
|
+
end
|
165
|
+
|
156
166
|
end
|
157
167
|
end if const_defined? :Configuration
|
158
168
|
end
|
metadata
CHANGED
@@ -1,78 +1,73 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rvm-capistrano
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.7
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
- 6
|
10
|
-
version: 1.2.6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Wayne E. Seguin
|
14
9
|
- Michal Papis
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-09-09 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: capistrano
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 15
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 0
|
33
|
-
- 0
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
34
22
|
version: 2.0.0
|
35
23
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rake
|
39
24
|
prerelease: false
|
40
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 2.0.0
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: rake
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
41
34
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
49
39
|
type: :development
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: minitest
|
53
40
|
prerelease: false
|
54
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: minitest
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
55
50
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
63
55
|
type: :development
|
64
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
65
63
|
description: RVM / Capistrano Integration Gem
|
66
|
-
email:
|
64
|
+
email:
|
67
65
|
- wayneeseguin@gmail.com
|
68
66
|
- mpapis@gmail.com
|
69
67
|
executables: []
|
70
|
-
|
71
68
|
extensions: []
|
72
|
-
|
73
69
|
extra_rdoc_files: []
|
74
|
-
|
75
|
-
files:
|
70
|
+
files:
|
76
71
|
- History.md
|
77
72
|
- Manifest.yml
|
78
73
|
- README.md
|
@@ -82,37 +77,29 @@ files:
|
|
82
77
|
- lib/rvm/capistrano/version.rb
|
83
78
|
- spec/spec_helper.rb
|
84
79
|
homepage: https://rvm.beginrescueend.com/integration/capistrano
|
85
|
-
licenses:
|
80
|
+
licenses:
|
86
81
|
- MIT
|
87
82
|
post_install_message:
|
88
83
|
rdoc_options: []
|
89
|
-
|
90
|
-
require_paths:
|
84
|
+
require_paths:
|
91
85
|
- lib
|
92
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
87
|
none: false
|
94
|
-
requirements:
|
95
|
-
- -
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
|
98
|
-
|
99
|
-
- 0
|
100
|
-
version: "0"
|
101
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
93
|
none: false
|
103
|
-
requirements:
|
104
|
-
- -
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
|
107
|
-
segments:
|
108
|
-
- 0
|
109
|
-
version: "0"
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
110
98
|
requirements: []
|
111
|
-
|
112
99
|
rubyforge_project:
|
113
|
-
rubygems_version: 1.8.
|
100
|
+
rubygems_version: 1.8.19
|
114
101
|
signing_key:
|
115
102
|
specification_version: 3
|
116
103
|
summary: RVM / Capistrano Integration Gem
|
117
|
-
test_files:
|
104
|
+
test_files:
|
118
105
|
- spec/spec_helper.rb
|