chef_cap 0.2.6 → 0.2.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.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
data/recipes/chef_cap.rb CHANGED
@@ -35,7 +35,11 @@ if ChefDnaParser.parsed["environments"]
35
35
  if environment_hash["role_order"]
36
36
  set :role_order, environment_hash["role_order"]
37
37
  else
38
- set(:role_order, {}) unless defined?(role_order)
38
+ begin
39
+ role_order
40
+ rescue
41
+ set(:role_order, {})
42
+ end
39
43
  end
40
44
 
41
45
  default_environment["RAILS_ENV"] = rails_env
@@ -637,7 +637,7 @@ describe "chef_cap" do
637
637
  "servers": [
638
638
  {
639
639
  "hostname": "dep0host",
640
- "roles": ["dep0"]
640
+ "roles": ["dep0", "dep4"]
641
641
  },
642
642
  {
643
643
  "hostname": "dep2host",
@@ -650,7 +650,8 @@ describe "chef_cap" do
650
650
  "dep0": { "run_list": [] },
651
651
  "dep1": { "run_list": [] },
652
652
  "dep2": { "run_list": [] },
653
- "dep3": { "run_list": [] }
653
+ "dep3": { "run_list": [] },
654
+ "dep4": { "run_list": [] }
654
655
  }
655
656
  }
656
657
  JS
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.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-02 00:00:00.000000000Z
12
+ date: 2011-12-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &2151806800 !ruby/object:Gem::Requirement
16
+ requirement: &2151808920 !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: *2151806800
24
+ version_requirements: *2151808920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec-rails
27
- requirement: &2151804840 !ruby/object:Gem::Requirement
27
+ requirement: &2151807980 !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: *2151804840
35
+ version_requirements: *2151807980
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: -2863680832922122832
94
+ hash: -2296147763617098582
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: -2863680832922122832
103
+ hash: -2296147763617098582
104
104
  requirements: []
105
105
  rubyforge_project:
106
106
  rubygems_version: 1.8.11