capistrano_chef_solo 0.0.5 → 0.1.0

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/.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.2-p290@capistrano_chef_solo"
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.
@@ -20,5 +20,5 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # specify any dependencies here; for example:
22
22
  # s.add_development_dependency "rspec"
23
- s.add_runtime_dependency "capistrano", "~> 2.8.0"
23
+ s.add_runtime_dependency "capistrano", "~> 2.8"
24
24
  end
@@ -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 :ruby, :except => { :no_release => true } do
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)
@@ -1,3 +1,3 @@
1
1
  module CapistranoChefSolo
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
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.5
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: 2011-11-17 00:00:00.000000000Z
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: &2173526080 !ruby/object:Gem::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.0
21
+ version: '2.8'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2173526080
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.10
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