capistrano-rbenv 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/capistrano-rbenv/deploy.rb +9 -8
- data/lib/capistrano-rbenv/version.rb +1 -1
- metadata +2 -2
@@ -94,7 +94,7 @@ module Capistrano
|
|
94
94
|
}
|
95
95
|
|
96
96
|
_cset(:rbenv_platform) {
|
97
|
-
capture((<<-EOS).gsub(/\s+/, ' '))
|
97
|
+
capture((<<-EOS).gsub(/\s+/, ' ')).strip
|
98
98
|
if test -f /etc/debian_version; then
|
99
99
|
if test -f /etc/lsb-release && grep -i -q DISTRIB_ID=Ubuntu /etc/lsb-release; then
|
100
100
|
echo ubuntu;
|
@@ -111,9 +111,9 @@ module Capistrano
|
|
111
111
|
_cset(:rbenv_ruby_dependencies) {
|
112
112
|
case rbenv_platform
|
113
113
|
when /(debian|ubuntu)/i
|
114
|
-
%w(build-essential libreadline6-dev zlib1g-dev libssl-dev bison)
|
114
|
+
%w(git-core build-essential libreadline6-dev zlib1g-dev libssl-dev bison)
|
115
115
|
when /redhat/i
|
116
|
-
%w(autoconf glibc-devel patch readline readline-devel zlib zlib-devel openssl bison)
|
116
|
+
%w(git-core autoconf glibc-devel patch readline readline-devel zlib zlib-devel openssl bison)
|
117
117
|
else
|
118
118
|
[]
|
119
119
|
end
|
@@ -122,10 +122,9 @@ module Capistrano
|
|
122
122
|
unless rbenv_ruby_dependencies.empty?
|
123
123
|
case rbenv_platform
|
124
124
|
when /(debian|ubuntu)/i
|
125
|
-
#
|
126
|
-
run("dpkg-query --show #{rbenv_ruby_dependencies.join(' ')} 2>/dev/null || #{sudo} apt-get -y install #{rbenv_ruby_dependencies.join(' ')}")
|
125
|
+
run("#{sudo} apt-get install -q -y #{rbenv_ruby_dependencies.join(' ')}")
|
127
126
|
when /redhat/i
|
128
|
-
run("#{sudo} yum install -y #{rbenv_ruby_dependencies.join(' ')}")
|
127
|
+
run("#{sudo} yum install -q -y #{rbenv_ruby_dependencies.join(' ')}")
|
129
128
|
else
|
130
129
|
# nop
|
131
130
|
end
|
@@ -135,7 +134,9 @@ module Capistrano
|
|
135
134
|
desc("Build ruby within rbenv.")
|
136
135
|
task(:build, :except => { :no_release => true }) {
|
137
136
|
ruby = fetch(:rbenv_ruby_cmd, 'ruby')
|
138
|
-
|
137
|
+
if rbenv_ruby_version != 'system'
|
138
|
+
run("#{rbenv_cmd} whence #{ruby} | grep -q #{rbenv_ruby_version} || #{rbenv_cmd} install #{rbenv_ruby_version}")
|
139
|
+
end
|
139
140
|
run("#{rbenv_cmd} exec #{ruby} --version")
|
140
141
|
}
|
141
142
|
|
@@ -151,7 +152,7 @@ module Capistrano
|
|
151
152
|
f = "grep #{rbenv_bundler_gem}"
|
152
153
|
i = "#{rbenv_bundler_gem}"
|
153
154
|
end
|
154
|
-
run("unset -v GEM_HOME; #{gem} query #{q} 2>/dev/null | #{f} || #{gem} install #{i}")
|
155
|
+
run("unset -v GEM_HOME; #{gem} query #{q} 2>/dev/null | #{f} || #{gem} install -q #{i}")
|
155
156
|
run("#{rbenv_cmd} rehash && #{bundle_cmd} version")
|
156
157
|
}
|
157
158
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rbenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|