chef_cap 0.3.6 → 0.3.7

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.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -6,6 +6,7 @@ before "chef:setup", "rvm:bootstrap"
6
6
  namespace :rvm do
7
7
  desc "Create a standalone rvm installation with a default ruby to use with chef-solo"
8
8
  task :bootstrap do
9
+ set :rvm_ruby_version, (ChefDnaParser.parsed["environment"]["rvm_ruby_version"] rescue "ruby-1.9.3-p0" || "ruby-1.9.3-p0")
9
10
  rvm_standup_script = <<-SH
10
11
  #!/bin/bash
11
12
  #
@@ -30,6 +31,11 @@ namespace :rvm do
30
31
  bash -s stable < $RVM_TEMP_FILE
31
32
  rm -f $RVM_TEMP_FILE
32
33
  which rvm > /tmp/.chef_cap_rvm_path
34
+ `/tmp/.chef_cap_rvm_path` list | grep "No rvm rubies installed"
35
+ if [ $? -eq 0 ]; then
36
+ echo "No rvm rubies installed. Installing from capistrano setting :rvm_ruby_version #{rvm_ruby_version}"
37
+ `cat /tmp/.chef_cap_rvm_path` install #{rvm_ruby_version}
38
+ fi
33
39
  else
34
40
  echo "FATAL ERROR: I have no idea how to download RVM without curl!"
35
41
  exit 1
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.6
4
+ version: 0.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70314821798740 !ruby/object:Gem::Requirement
16
+ requirement: &70155926752100 !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: *70314821798740
24
+ version_requirements: *70155926752100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec-rails
27
- requirement: &70314821798240 !ruby/object:Gem::Requirement
27
+ requirement: &70155926751600 !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: *70314821798240
35
+ version_requirements: *70155926751600
36
36
  description: chef_cap uses chef"s JSON config format to drive both capistrano and
37
37
  chef-solo"
38
38
  email:
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: 571638678164939980
94
+ hash: 1260827502107611425
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: 571638678164939980
103
+ hash: 1260827502107611425
104
104
  requirements: []
105
105
  rubyforge_project:
106
106
  rubygems_version: 1.8.15