capistrano-rvm 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +7 -1
- data/capistrano-rvm.gemspec +1 -1
- data/lib/capistrano/tasks/rvm.rake +7 -5
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed0c630e5a7b10f1979e3b83e2f925c0fe63556f
|
4
|
+
data.tar.gz: 0d31f32520fe0a4ddc22ae86a38bc3e4cd55cf43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87a0bdf5762683d56a30021e0227d39bf51ae4114d751f215193eb6a662f4a574b5035dbf74583e11db5360dcb0ddc610cc79ac14bbd5ea11126060ca00680a
|
7
|
+
data.tar.gz: 5d0de31a7c311dbe52701fb30a08c6da971c6838d2f38e96a286090b0c432910aa21a1b22edbd6ce8dc2017a7365861ef14e1e6af851c640a88e3906bf390fd7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 0.1.2 (14 Oct 2014)
|
2
|
+
|
3
|
+
* suppress this constant RVM checks if QUIET environment variables is set [#42](https://github.com/capistrano/rvm/pull/42)
|
4
|
+
|
5
|
+
* `rvm_roles` option [#41](https://github.com/capistrano/rvm/pull/41)
|
6
|
+
|
1
7
|
## 0.1.1
|
2
8
|
|
3
9
|
* Flexible SSHKit dependency
|
data/README.md
CHANGED
@@ -6,6 +6,8 @@ RVM support for Capistrano v3:
|
|
6
6
|
|
7
7
|
**If you use this integration with capistrano-rails, please ensure that you have `capistrano-bundler >= 1.1.0`.**
|
8
8
|
|
9
|
+
If you want solution with RVM/rubies installer included, give a try to [rvm1-capistrano3](https://github.com/rvm/rvm1-capistrano3).
|
10
|
+
|
9
11
|
## Installation
|
10
12
|
|
11
13
|
Add this line to your application's Gemfile:
|
@@ -64,12 +66,16 @@ or
|
|
64
66
|
|
65
67
|
set :rvm_ruby_version, '2.0.0@mygemset'
|
66
68
|
|
67
|
-
|
68
69
|
### Custom RVM path: `:rvm_custom_path`
|
69
70
|
|
70
71
|
If you have a custom RVM setup with a different path then expected, you have
|
71
72
|
to define a custom RVM path to tell capistrano where it is.
|
72
73
|
|
74
|
+
### Custom Roles: `:rvm_roles`
|
75
|
+
|
76
|
+
If you want to restrict RVM usage to a subset of roles, you may set `:rvm_roles`:
|
77
|
+
|
78
|
+
set :rvm_roles, [:app, :web]
|
73
79
|
|
74
80
|
## Restrictions
|
75
81
|
|
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.1.
|
7
|
+
gem.version = '0.1.2'
|
8
8
|
gem.authors = ["Kir Shatrov"]
|
9
9
|
gem.email = ["shatrov@me.com"]
|
10
10
|
gem.description = %q{RVM integration for Capistrano}
|
@@ -4,15 +4,17 @@ RVM_USER_PATH = "~/.rvm"
|
|
4
4
|
namespace :rvm do
|
5
5
|
desc "Prints the RVM and Ruby version on the target host"
|
6
6
|
task :check do
|
7
|
-
on roles(:all) do
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
on roles(fetch(:rvm_roles, :all)) do
|
8
|
+
if fetch(:log_level) == :debug
|
9
|
+
puts capture(:rvm, "version")
|
10
|
+
puts capture(:rvm, "current")
|
11
|
+
puts capture(:ruby, "--version")
|
12
|
+
end
|
11
13
|
end
|
12
14
|
end
|
13
15
|
|
14
16
|
task :hook do
|
15
|
-
on roles(:all) do
|
17
|
+
on roles(fetch(:rvm_roles, :all)) do
|
16
18
|
rvm_path = fetch(:rvm_custom_path)
|
17
19
|
rvm_path ||= case fetch(:rvm_type)
|
18
20
|
when :auto
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kir Shatrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -79,3 +79,4 @@ signing_key:
|
|
79
79
|
specification_version: 4
|
80
80
|
summary: RVM integration for Capistrano
|
81
81
|
test_files: []
|
82
|
+
has_rdoc:
|