Skip to content

Commit fba1534

Browse files
committed
Updating the chef requires so that you can not need every dependency to run the client.
1 parent 9a0c676 commit fba1534

73 files changed

Lines changed: 202 additions & 73 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

chef-server/lib/controllers/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#
1818

1919
require "chef" / "mixin" / "checksum"
20+
require "chef" / "cookbook_loader"
2021

2122
class Application < Merb::Controller
2223

chef-server/lib/controllers/cookbook_attributes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef' / 'mixin' / 'checksum'
1920

2021
class CookbookAttributes < Application
2122

chef-server/lib/controllers/cookbook_definitions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef' / 'mixin' / 'checksum'
1920

2021
class CookbookDefinitions < Application
2122

chef-server/lib/controllers/cookbook_files.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef' / 'mixin' / 'checksum'
20+
require 'chef' / 'cookbook_loader'
1921

2022
class CookbookFiles < Application
2123

chef-server/lib/controllers/cookbook_libraries.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef' / 'mixin' / 'checksum'
20+
require 'chef' / 'cookbook_loader'
21+
1922
class CookbookLibraries < Application
2023

2124
provides :html, :json

chef-server/lib/controllers/cookbook_recipes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef' / 'mixin' / 'checksum'
1920

2021
class CookbookRecipes < Application
2122

chef-server/lib/controllers/cookbook_templates.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef' / 'mixin' / 'checksum'
20+
require 'chef' / 'cookbook_loader'
21+
1922
class CookbookTemplates < Application
2023

2124
provides :html, :json

chef-server/lib/controllers/cookbooks.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef' / 'cookbook_loader'
20+
1921
class Cookbooks < Application
2022

2123
provides :html, :json

chef-server/lib/controllers/nodes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# limitations under the License.
1717
#
1818

19+
require 'chef' / 'node'
20+
1921
class Nodes < Application
2022

2123
provides :html, :json

chef-server/lib/controllers/openid_register.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#
1818

1919
require 'openid'
20+
require 'chef' / 'openid_registration'
2021

2122
class OpenidRegister < Application
2223

0 commit comments

Comments
 (0)