capistrano-rvm 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +3 -0
- data/CHANGELOG.md +6 -0
- data/LICENSE.txt +24 -0
- data/README.md +7 -12
- data/capistrano-rvm.gemspec +1 -1
- data/lib/capistrano/tasks/rvm.rake +1 -8
- metadata +8 -9
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjZkMjQ3MTQzZGZkMzk4ZmZlZWIyMzZkYWQ3YWY3MzJkOWVjMzNjOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDRmOWY5NjI3Yjk0NTgyODJhY2M3MWQ5MzFkM2UwNzI4M2U0ZTliMw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWFiOWRlZjQzOGQzYmYyMDRkNjM4YmY3ODk1ZjA4NGY1ZWJiYTQyZGM4ZDk5
|
10
|
+
Y2NlNjExYjJmMzk5NGYxMGMwZTVjODIyMjU2YTFiNzc1ZGM1ZjBmYzg5MGUy
|
11
|
+
YjgwYTkwM2E2MDY3M2Y3Y2UxMmQyNWRkNWVkYjE4NjNkZjY4ZWU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTBmMzFlNTEyODgyODNhNzU0NTQyNTY1MWVhYmYyNmY3Njk4MTM5MzhhZTZk
|
14
|
+
OTdiMTFiYTExMzI2Y2RhODIyZTRjZDg4N2E1NjhjZjExZjhiZTAwODMzMmQ2
|
15
|
+
M2QyZmFiYmU3NGI5NGE2MGM4YTRkMGExODQzNmM2ZDg5YjczYmY=
|
data/.gitignore
ADDED
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
The MIT License (MIT)
|
3
|
+
|
4
|
+
Copyright (c) 2013 Kir Shatrov
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
7
|
+
this software and associated documentation files (the "Software"), to deal in
|
8
|
+
the Software without restriction, including without limitation the rights to
|
9
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
10
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
11
|
+
subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
18
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
19
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
20
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
21
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
+
|
23
|
+
|
24
|
+
|
data/README.md
CHANGED
@@ -7,8 +7,8 @@ RVM support for Capistrano 3.x
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
# Gemfile
|
10
|
-
gem 'capistrano',
|
11
|
-
gem 'capistrano-rvm',
|
10
|
+
gem 'capistrano', '~> 3.0'
|
11
|
+
gem 'capistrano-rvm', '~> 0.0.2'
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
@@ -40,7 +40,6 @@ Valid options are:
|
|
40
40
|
`/usr/local/rvm` wins over `~/.rvm`
|
41
41
|
* `:system`: defines the RVM path to `/usr/local/rvm`
|
42
42
|
* `:user`: defines the RVM path to `~/.rvm`
|
43
|
-
* `:mixed`: defines the RVM path to `/usr/local/rvm` for rvm and `~/.rvm` for wrapped commands
|
44
43
|
|
45
44
|
### Ruby and gemset selection: `:rvm_ruby_version`
|
46
45
|
|
@@ -76,10 +75,9 @@ proper ruby and create the gemset.
|
|
76
75
|
|
77
76
|
## How it works
|
78
77
|
|
79
|
-
This gem adds a new task `rvm:hook` before `deploy:starting`.
|
80
|
-
|
81
|
-
|
82
|
-
when it wants to run `rake`, `gem`, `bundle`, or `ruby`.
|
78
|
+
This gem adds a new task `rvm:hook` before `deploy:starting`.
|
79
|
+
It sets the `rvm ... do ...` for capistrano when it wants to run
|
80
|
+
`rake`, `gem`, `bundle`, or `ruby`.
|
83
81
|
|
84
82
|
|
85
83
|
## Check your configuration
|
@@ -94,15 +92,12 @@ deployment.
|
|
94
92
|
## Custom tasks which rely on RVM/Ruby
|
95
93
|
|
96
94
|
When building custom tasks which need a the corrent ruby and gemset, all you
|
97
|
-
have to do is run the `rvm:hook` task before your own task. This will
|
98
|
-
the
|
95
|
+
have to do is run the `rvm:hook` task before your own task. This will handle
|
96
|
+
the execution of the ruby-related commands.
|
99
97
|
This is only necessary if your task is *not* *after* the `deploy:starting` task.
|
100
98
|
|
101
99
|
before :my_custom_task, 'rvm:hook'
|
102
100
|
|
103
|
-
The hook can be called multiple times per `cap` run - it only creates the
|
104
|
-
wrappers once.
|
105
|
-
|
106
101
|
## Contributing
|
107
102
|
|
108
103
|
1. Fork it
|
data/capistrano-rvm.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-rvm"
|
7
|
-
gem.version = '0.0.
|
7
|
+
gem.version = '0.0.3'
|
8
8
|
gem.authors = ["Kir Shatrov"]
|
9
9
|
gem.email = ["shatrov@me.com"]
|
10
10
|
gem.description = %q{RVM integration for Capistrano}
|
@@ -7,7 +7,7 @@ end
|
|
7
7
|
|
8
8
|
SSHKit.config.command_map = Hash.new do |hash, key|
|
9
9
|
if fetch(:rvm_map_bins).include?(key.to_s)
|
10
|
-
hash[key] = "#{fetch(:
|
10
|
+
hash[key] = "#{fetch(:rvm_path)}/bin/rvm #{fetch(:rvm_ruby_version)} do #{key}"
|
11
11
|
elsif key.to_s == "rvm"
|
12
12
|
hash[key] = "#{fetch(:rvm_path)}/bin/rvm"
|
13
13
|
else
|
@@ -24,7 +24,6 @@ namespace :rvm do
|
|
24
24
|
task :hook do
|
25
25
|
unless fetch(:rvm_hooked)
|
26
26
|
invoke :'rvm:init'
|
27
|
-
invoke :'rvm:create_wrappers'
|
28
27
|
set :rvm_hooked, true
|
29
28
|
end
|
30
29
|
end
|
@@ -55,7 +54,6 @@ namespace :rvm do
|
|
55
54
|
RVM_USER_PATH
|
56
55
|
end
|
57
56
|
set :rvm_path, rvm_path
|
58
|
-
set :rvm_bins_path, fetch(:rvm_type) == :mixed ? RVM_USER_PATH : rvm_path
|
59
57
|
|
60
58
|
rvm_ruby_version = fetch(:rvm_ruby_version)
|
61
59
|
rvm_ruby_version ||= capture(:rvm, "current")
|
@@ -63,11 +61,6 @@ namespace :rvm do
|
|
63
61
|
end
|
64
62
|
end
|
65
63
|
|
66
|
-
task :create_wrappers do
|
67
|
-
on roles(:all) do
|
68
|
-
execute :rvm, "wrapper #{fetch(:rvm_ruby_version)} #{fetch(:application)} #{fetch(:rvm_map_bins).join(" ")}"
|
69
|
-
end
|
70
|
-
end
|
71
64
|
end
|
72
65
|
|
73
66
|
namespace :load do
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kir Shatrov
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: capistrano
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -34,7 +31,10 @@ executables: []
|
|
34
31
|
extensions: []
|
35
32
|
extra_rdoc_files: []
|
36
33
|
files:
|
34
|
+
- .gitignore
|
35
|
+
- CHANGELOG.md
|
37
36
|
- Gemfile
|
37
|
+
- LICENSE.txt
|
38
38
|
- README.md
|
39
39
|
- Rakefile
|
40
40
|
- capistrano-rvm.gemspec
|
@@ -43,27 +43,26 @@ files:
|
|
43
43
|
- lib/capistrano/tasks/rvm.rake
|
44
44
|
homepage: https://github.com/capistrano/rvm
|
45
45
|
licenses: []
|
46
|
+
metadata: {}
|
46
47
|
post_install_message:
|
47
48
|
rdoc_options: []
|
48
49
|
require_paths:
|
49
50
|
- lib
|
50
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
57
|
requirements:
|
59
58
|
- - ! '>='
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: '0'
|
62
61
|
requirements: []
|
63
62
|
rubyforge_project:
|
64
|
-
rubygems_version: 1.
|
63
|
+
rubygems_version: 2.1.9
|
65
64
|
signing_key:
|
66
|
-
specification_version:
|
65
|
+
specification_version: 4
|
67
66
|
summary: RVM integration for Capistrano
|
68
67
|
test_files: []
|
69
68
|
has_rdoc:
|