capistrano_chef_solo 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/capistrano_chef_solo.gemspec +1 -1
- data/lib/capistrano_chef_solo.rb +36 -1
- data/lib/capistrano_chef_solo/version.rb +1 -1
- metadata +11 -6
data/.rvmrc
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# development environment upon cd'ing into the directory
|
5
5
|
|
6
6
|
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
|
7
|
-
environment_id="ruby-1.9.
|
7
|
+
environment_id="ruby-1.9.3-p362@capistrano_chef_solo"
|
8
8
|
|
9
9
|
#
|
10
10
|
# Uncomment following line if you want options to be set only for given project.
|
data/lib/capistrano_chef_solo.rb
CHANGED
@@ -163,6 +163,26 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
166
|
+
desc <<-DESC
|
167
|
+
Installs Ruby using ruby-build by default.
|
168
|
+
|
169
|
+
You can set the version by setting :ruby_version. For example:
|
170
|
+
|
171
|
+
set :ruby_version, "ree-1.8.7-2011.03"
|
172
|
+
|
173
|
+
If you are using Ruby 1.9.2, and want to have some speed improvements, \
|
174
|
+
capistrano_chef_solo also provides a patched Ruby compiled from source. \
|
175
|
+
To use this, set :use_ruby_build, false. See the the documentation of \
|
176
|
+
chef:install:ruby_from_source for more information.
|
177
|
+
DESC
|
178
|
+
task :ruby, :except => { :no_release => true } do
|
179
|
+
if fetch :use_ruby_build, true
|
180
|
+
ruby_build
|
181
|
+
else
|
182
|
+
ruby_from_source
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
166
186
|
desc <<-DESC
|
167
187
|
Compiles Ruby from source and applies 1.9.2 patches to speed it up.
|
168
188
|
|
@@ -208,7 +228,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
208
228
|
See more on GC tuning here:
|
209
229
|
http://www.rubyenterpriseedition.com/documentation.html#_garbage_collector_performance_tuning
|
210
230
|
DESC
|
211
|
-
task :
|
231
|
+
task :ruby_from_source, :except => { :no_release => true } do
|
212
232
|
ruby_version = fetch :ruby_version, "ruby-1.9.2-p290"
|
213
233
|
ruby_url = fetch :ruby_url, "http://ftp.ruby-lang.org/pub/ruby/1.9/#{ruby_version}.tar.gz"
|
214
234
|
ruby_dir = fetch :ruby_dir, ruby_version
|
@@ -265,6 +285,21 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
265
285
|
run "#{sudo} #{sudo_opts} gem install ruby-shadow --no-ri --no-rdoc"
|
266
286
|
end
|
267
287
|
|
288
|
+
desc "Installs ruby with ruby-build. Use :ruby_version to specify a version."
|
289
|
+
task :ruby_build, :except => { :no_release => true } do
|
290
|
+
version = fetch(:ruby_version) { "1.9.3-p0" }
|
291
|
+
script = <<-BASH
|
292
|
+
set -e
|
293
|
+
cd /tmp
|
294
|
+
test -d ruby-build || git clone git://github.com/sstephenson/ruby-build.git
|
295
|
+
cd ruby-build
|
296
|
+
#{sudo} #{sudo_opts} ./install.sh
|
297
|
+
#{sudo} #{sudo_opts} ruby-build #{version} /usr/local/
|
298
|
+
BASH
|
299
|
+
put script, "/tmp/install-ruby-build.sh", :via => :scp
|
300
|
+
run "bash /tmp/install-ruby-build.sh > /tmp/install-ruby-build.log"
|
301
|
+
end
|
302
|
+
|
268
303
|
end
|
269
304
|
|
270
305
|
def solo(*run_list)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_chef_solo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,19 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.8
|
21
|
+
version: '2.8'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.8'
|
25
30
|
description: This gem provides Capistrano tasks to run chef-solo with Capistrano,
|
26
31
|
with hardly any configuration needed.
|
27
32
|
email:
|
@@ -58,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
63
|
version: '0'
|
59
64
|
requirements: []
|
60
65
|
rubyforge_project: capistrano_chef_solo
|
61
|
-
rubygems_version: 1.8.
|
66
|
+
rubygems_version: 1.8.24
|
62
67
|
signing_key:
|
63
68
|
specification_version: 3
|
64
69
|
summary: Combining the awesome powers of Capistrano and chef-solo
|