chef-server-api 0.9.0.a91 → 0.9.0.a92

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- run_list_items, default_attrs, override_attrs = node.run_list.expand('couchdb')
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
- run_list_items.inject({}) do |included_cookbooks, run_list_item|
121
- expand_cookbook_deps(included_cookbooks, all_cookbooks, run_list_item)
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
@@ -22,6 +22,7 @@ class Users < Application
22
22
  provides :json
23
23
 
24
24
  before :authenticate_every
25
+ before :is_admin, :only => [ :create, :destroy, :update ]
25
26
 
26
27
  # GET to /users
27
28
  def index
@@ -1,3 +1,3 @@
1
1
  module ChefServerApi
2
- VERSION = '0.9.0.a91'
2
+ VERSION = '0.9.0.a92'
3
3
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 9
8
8
  - 0
9
- - a91
10
- version: 0.9.0.a91
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-08 00:00:00 -07:00
18
+ date: 2010-06-11 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency