chef-server-api 0.9.0.a91 → 0.9.0.a92
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/app/controllers/nodes.rb +5 -3
- data/app/controllers/users.rb +1 -0
- data/lib/chef-server-api/version.rb +1 -1
- metadata +3 -3
data/app/controllers/nodes.rb
CHANGED
@@ -114,11 +114,13 @@ class Nodes < Application
|
|
114
114
|
def cookbooks_for_node(node_name, all_cookbooks)
|
115
115
|
# get node's explicit dependencies
|
116
116
|
node = Chef::Node.cdb_load(node_name)
|
117
|
-
|
117
|
+
|
118
|
+
# expand returns a RunListExpansion which contains recipes, default and override attrs [cb]
|
119
|
+
recipes = node.run_list.expand('couchdb').recipes
|
118
120
|
|
119
121
|
# walk run list and accumulate included dependencies
|
120
|
-
|
121
|
-
expand_cookbook_deps(included_cookbooks, all_cookbooks,
|
122
|
+
recipes.inject({}) do |included_cookbooks, recipe|
|
123
|
+
expand_cookbook_deps(included_cookbooks, all_cookbooks, recipe)
|
122
124
|
included_cookbooks
|
123
125
|
end
|
124
126
|
end
|
data/app/controllers/users.rb
CHANGED
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 9
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.9.0.
|
9
|
+
- a92
|
10
|
+
version: 0.9.0.a92
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Opscode
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-06-
|
18
|
+
date: 2010-06-11 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|