chef_cap 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ChefCap
2
- VERSION = "0.3.15"
2
+ VERSION = "0.3.16"
3
3
  end
data/recipes/rbenv.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  namespace :bootstrap do
2
2
  desc "Create a standalone rbenv installation with a default ruby to use with chef-solo"
3
3
  task :rbenv do
4
- set :ruby_version, default_ruby_version
4
+ begin
5
+ ruby_version
6
+ rescue
7
+ set :ruby_version, default_ruby_version
8
+ end
5
9
  ruby_version.gsub!(/^ruby\-/,'')
6
10
  standup_script = <<-SH
7
11
  #!/bin/bash
data/recipes/rvm.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  namespace :bootstrap do
2
2
  desc "Create a standalone rvm installation with a default ruby to use with chef-solo"
3
3
  task :rvm do
4
- set :ruby_version, default_ruby_version
4
+ begin
5
+ ruby_version
6
+ rescue
7
+ set :ruby_version, default_ruby_version
8
+ end
5
9
  if ruby_version =~ /^[0-9]/
6
10
  ruby_version = "ruby-#{ruby_version}"
7
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef_cap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70301691251260 !ruby/object:Gem::Requirement
16
+ requirement: &70132830939720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.5.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70301691251260
24
+ version_requirements: *70132830939720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec-rails
27
- requirement: &70301691250760 !ruby/object:Gem::Requirement
27
+ requirement: &70132830939220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.1'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70301691250760
35
+ version_requirements: *70132830939220
36
36
  description: chef_cap uses chef"s JSON config format to drive both capistrano and
37
37
  chef-solo"
38
38
  email:
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 855178474274855074
96
+ hash: 2384103699850789343
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 855178474274855074
105
+ hash: 2384103699850789343
106
106
  requirements: []
107
107
  rubyforge_project:
108
108
  rubygems_version: 1.8.17