chef_cap 0.3.8 → 0.3.9

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.8"
2
+ VERSION = "0.3.9"
3
3
  end
@@ -21,6 +21,12 @@ namespace :rvm do
21
21
  if [ $? -eq 0 ]; then
22
22
  echo "No rvm rubies installed. Installing from capistrano setting :rvm_ruby_version #{rvm_ruby_version}"
23
23
  `cat /tmp/.chef_cap_rvm_path` install #{rvm_ruby_version}
24
+ `cat /tmp/.chef_cap_rvm_path` --default use #{rvm_ruby_version}
25
+ fi
26
+ `cat /tmp/.chef_cap_rvm_path` list | grep "Default ruby not set"
27
+ if [ $? -eq 0 ]; then
28
+ echo "No rvm default set."
29
+ `cat /tmp/.chef_cap_rvm_path` alias create default #{rvm_ruby_version}
24
30
  fi
25
31
  exit 0
26
32
  else
@@ -40,6 +46,8 @@ namespace :rvm do
40
46
  if [ $? -eq 0 ]; then
41
47
  echo "No rvm rubies installed. Installing from capistrano setting :rvm_ruby_version #{rvm_ruby_version}"
42
48
  `cat /tmp/.chef_cap_rvm_path` install #{rvm_ruby_version}
49
+ `cat /tmp/.chef_cap_rvm_path` --default use #{rvm_ruby_version}
50
+ `cat /tmp/.chef_cap_rvm_path` alias create default #{rvm_ruby_version}
43
51
  fi
44
52
  else
45
53
  echo "FATAL ERROR: I have no idea how to download RVM without curl!"
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.8
4
+ version: 0.3.9
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: &70104985242440 !ruby/object:Gem::Requirement
16
+ requirement: &70278612405080 !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: *70104985242440
24
+ version_requirements: *70278612405080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec-rails
27
- requirement: &70104985241940 !ruby/object:Gem::Requirement
27
+ requirement: &70278612404580 !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: *70104985241940
35
+ version_requirements: *70278612404580
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: 3359296481731048809
94
+ hash: -4600452591196724743
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: 3359296481731048809
103
+ hash: -4600452591196724743
104
104
  requirements: []
105
105
  rubyforge_project:
106
106
  rubygems_version: 1.8.15