capistrano-rbenv-maintenance 1.0.0 → 1.0.1
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: 0d8d177c23c1d1052e25a9a3a38f6c5f22cb14a0
|
4
|
+
data.tar.gz: e1201d31822301a448f56c0752cf0e0735683ce8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38208717fe33d0525fac79532de12070e75671bfa058a706928379b009bb232798bc1e0b6fa456fba82418a5a8b87fa90f9660682264a26d9e88f02b131b8d05
|
7
|
+
data.tar.gz: 1c7992ed5772ad52a69e40446086b44c5540efdcdceff0371da1834489f89bbeac5e1d287b3c4536b223f9cbe30051e851034d14195c3ba9fc347b0ab5765408
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-rbenv-maintenance"
|
7
|
-
spec.version = '1.0.
|
7
|
+
spec.version = '1.0.1'
|
8
8
|
spec.authors = ['Bob Breznak']
|
9
9
|
spec.email = ['bob.breznak@gmail.com']
|
10
10
|
spec.summary = %q{Tasks for maintaining rbenv with Capistrano}
|
@@ -3,9 +3,9 @@ namespace :rbenv do
|
|
3
3
|
task :setup do
|
4
4
|
on roles(fetch(:rbenv_roles)) do
|
5
5
|
[:rbenv, :ruby_build].each do |component|
|
6
|
-
path = fetch("#{component}_path".
|
7
|
-
url = fetch("#{component}_git_url".
|
8
|
-
execute :git, 'clone', url, path
|
6
|
+
path = fetch("#{component}_path".to_sym)
|
7
|
+
url = fetch("#{component}_git_url".to_sym)
|
8
|
+
execute :git, 'clone', url, path unless test "[ -d #{path} ]"
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -36,7 +36,7 @@ namespace :rbenv do
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
before 'rbenv:
|
39
|
+
before 'rbenv:validate', 'rbenv:setup'
|
40
40
|
before 'rbenv:install', 'rbenv:map_bins'
|
41
41
|
before 'rbenv:validate', 'rbenv:install'
|
42
42
|
end
|