chef-server 0.7.16 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/bin/chef-server CHANGED
@@ -26,8 +26,9 @@
26
26
  require "rubygems"
27
27
  require "merb-core"
28
28
 
29
- [ 'chef', 'chef-server-slice' ].each do |lib|
30
- library = File.join(File.dirname(__FILE__), "..", "..", lib, "lib", "#{lib}.rb")
29
+ [ 'chef', 'chef-server-api' ].each do |lib|
30
+ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib")))
31
+ library = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", lib, "lib", "#{lib}.rb"))
31
32
  require library if File.exists?(library)
32
33
  end
33
34
 
@@ -50,7 +51,7 @@ if ARGV[0] && ARGV[0] =~ /^[^-]/
50
51
  ARGV.push "-H"
51
52
  end
52
53
  unless %w[-a --adapter -i --irb-console -r --script-runner].any? { |o| ARGV.index(o) }
53
- ARGV.push *%w[-a mongrel]
54
+ ARGV.push *%w[-a thin]
54
55
  end
55
56
  ARGV.push *[ "-I", File.join(__DIR__, "config", "init.rb") ]
56
57
  ARGV.push *[ "-m", __DIR__]
@@ -66,4 +67,7 @@ else
66
67
  )
67
68
  end
68
69
 
70
+ Chef::Log.init(Chef::Config[:log_location])
71
+ Chef::Log.level = Chef::Config[:log_level]
72
+
69
73
  Merb.start
@@ -0,0 +1,76 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # ./chef-server - Serving up piping hot infrastructure!
4
+ #
5
+ # Author:: Adam Jacob (<adam@opscode.com>)
6
+ # Copyright:: Copyright (c) 2008 Opscode, Inc.
7
+ # License:: Apache License, Version 2.0
8
+ #
9
+ # Licensed under the Apache License, Version 2.0 (the "License");
10
+ # you may not use this file except in compliance with the License.
11
+ # You may obtain a copy of the License at
12
+ #
13
+ # http://www.apache.org/licenses/LICENSE-2.0
14
+ #
15
+ # Unless required by applicable law or agreed to in writing, software
16
+ # distributed under the License is distributed on an "AS IS" BASIS,
17
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ # See the License for the specific language governing permissions and
19
+ # limitations under the License.
20
+
21
+ # Based on the 'merb' command, by Ezra
22
+
23
+ # Add chef and chef-server-slice lib dirs to the load path
24
+ # Load chef and chef-server slice from source rather than gem, if present
25
+
26
+ require "rubygems"
27
+ require "merb-core"
28
+
29
+ [ 'chef', 'chef-server-webui' ].each do |lib|
30
+ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib")))
31
+ library = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", lib, "lib", "#{lib}.rb"))
32
+ require library if File.exists?(library)
33
+ end
34
+
35
+ ObjectSpace.each_object(Gem::Specification) do |gem|
36
+ next unless gem.name == "chef-server"
37
+ CHEF_SERVER_VERSION = gem.version.to_s
38
+ break
39
+ end
40
+
41
+ # Ensure the chef gem we load is the same version as the chef server
42
+ unless defined?(Chef)
43
+ gem "chef", "=" + CHEF_SERVER_VERSION if CHEF_SERVER_VERSION
44
+ require 'chef'
45
+ end
46
+
47
+ Dir.chdir File.join(File.dirname(__FILE__),"..")
48
+ __DIR__ = Dir.getwd
49
+
50
+ if ARGV[0] && ARGV[0] =~ /^[^-]/
51
+ ARGV.push "-H"
52
+ end
53
+ unless %w[-a --adapter -i --irb-console -r --script-runner].any? { |o| ARGV.index(o) }
54
+ ARGV.push *%w[-a thin]
55
+ end
56
+ unless %w[-p --port].any? { |o| ARGV.index(o) }
57
+ ARGV.push *%w[-p 4040]
58
+ end
59
+ ARGV.push *[ "-I", File.join(__DIR__, "config", "init-webui.rb") ]
60
+ ARGV.push *[ "-m", __DIR__]
61
+
62
+ if index = ARGV.index("-C")
63
+ config = ARGV[index+1]
64
+ ARGV.delete("-C")
65
+ ARGV.delete(config)
66
+ Chef::Config.from_file(File.expand_path(config))
67
+ else
68
+ Chef::Config.from_file(
69
+ File.join("/etc", "chef", "server.rb")
70
+ )
71
+ end
72
+
73
+ Chef::Log.init(Chef::Config[:log_location])
74
+ Chef::Log.level = Chef::Config[:log_level]
75
+
76
+ Merb.start
data/config-webui.ru ADDED
@@ -0,0 +1,25 @@
1
+ require 'rubygems'
2
+ require 'merb-core'
3
+ require 'chef'
4
+
5
+ Chef::Config.from_file(File.join("/etc", "chef", "server.rb"))
6
+
7
+ Merb::Config.setup(:merb_root => File.expand_path(File.dirname(__FILE__)),
8
+ :environment => 'production',
9
+ :fork_for_class_load => false,
10
+ :init_file => File.dirname(__FILE__) / "config/init-webui.rb")
11
+ Merb.environment = Merb::Config[:environment]
12
+ Merb.root = Merb::Config[:merb_root]
13
+ Merb::BootLoader.run
14
+
15
+ Merb::Slices.config.each do |slice_module, config|
16
+ slice_module = Object.full_const_get(slice_module.to_s.camel_case) if slice_module.class.in?(String, Symbol)
17
+ slice_module.send("public_components").each do |component|
18
+ slice_static_dir = slice_module.send("dir_for", :public)
19
+ use Merb::Rack::Static, slice_static_dir
20
+ end
21
+ end
22
+
23
+ run Merb::Rack::Application.new
24
+
25
+
data/config.ru CHANGED
@@ -4,8 +4,10 @@ require 'chef'
4
4
 
5
5
  Chef::Config.from_file(File.join("/etc", "chef", "server.rb"))
6
6
 
7
- Merb::Config.setup(:merb_root => File.expand_path(File.dirname(__FILE__)),
8
- :environment => ENV['RACK_ENV'], :init_file => File.dirname(__FILE__) / "config/init.rb")
7
+ Merb::Config.setup(:merb_root => File.expand_path(File.dirname(__FILE__)),
8
+ :environment => 'production',
9
+ :fork_for_class_load => false,
10
+ :init_file => File.dirname(__FILE__) / "config/init.rb")
9
11
  Merb.environment = Merb::Config[:environment]
10
12
  Merb.root = Merb::Config[:merb_root]
11
13
  Merb::BootLoader.run
@@ -0,0 +1,27 @@
1
+ # dependencies are generated using a strict version, don't forget to edit the dependency versions when upgrading.
2
+ merb_gems_version = "> 1.0"
3
+
4
+ %w{chef chef-server-webui}.each do |dep|
5
+ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "..", dep, "lib")))
6
+ end
7
+
8
+ dependency "chef", :immediate=>true unless defined?(Chef)
9
+
10
+ begin
11
+ require 'chef'
12
+ require 'chef-server-webui'
13
+ rescue
14
+ end
15
+
16
+ # For more information about each component, please read http://wiki.merbivore.com/faqs/merb_components
17
+ dependency "merb-core", merb_gems_version
18
+ dependency "merb-slices", merb_gems_version
19
+ dependency "merb-haml", merb_gems_version
20
+ dependency "merb-assets", merb_gems_version
21
+ dependency "merb-helpers", merb_gems_version
22
+ if defined?(CHEF_SERVER_VERSION)
23
+ dependency "chef-server-webui", CHEF_SERVER_VERSION unless defined?(ChefServerWebui)
24
+ else
25
+ dependency "chef-server-webui" unless defined?(ChefServerWebui)
26
+ end
27
+
@@ -1,13 +1,24 @@
1
1
  # dependencies are generated using a strict version, don't forget to edit the dependency versions when upgrading.
2
2
  merb_gems_version = "> 1.0"
3
3
 
4
+ %w{chef chef-server-api chef-solr}.each do |dep|
5
+ $:.unshift(File.join(File.dirname(__FILE__), "..", "..", dep, "lib"))
6
+ end
7
+
8
+ begin
9
+ require 'chef'
10
+ require 'chef-server-api'
11
+ rescue
12
+ end
13
+
4
14
  # For more information about each component, please read http://wiki.merbivore.com/faqs/merb_components
5
15
  dependency "merb-core", merb_gems_version
6
16
  dependency "merb-assets", merb_gems_version
7
17
  dependency "merb-helpers", merb_gems_version
8
18
  dependency "merb-slices", merb_gems_version
9
19
  if defined?(CHEF_SERVER_VERSION)
10
- dependency "chef-server-slice", CHEF_SERVER_VERSION unless defined?(ChefServerSlice)
20
+ dependency "chef-server-api", CHEF_SERVER_VERSION unless defined?(ChefServerApi)
11
21
  else
12
- dependency "chef-server-slice" unless defined?(ChefServerSlice)
22
+ dependency "chef-server-api" unless defined?(ChefServerApi)
13
23
  end
24
+
@@ -4,7 +4,6 @@ Merb::Config.use { |c|
4
4
  c[:reload_templates] = true
5
5
  c[:reload_classes] = true
6
6
  c[:reload_time] = 0.5
7
- c[:ignore_tampered_cookies] = true
8
7
  c[:log_auto_flush ] = true
9
8
  c[:log_level] = :debug
10
9
  c[:log_stream] = Chef::Config[:log_location]
@@ -2,6 +2,7 @@ Merb.logger.info("Loaded PRODUCTION Environment...")
2
2
  Merb::Config.use { |c|
3
3
  c[:exception_details] = false
4
4
  c[:reload_classes] = false
5
+ c[:log_auto_flush] = true
5
6
  c[:log_level] = Chef::Config[:log_level]
6
7
  c[:log_stream] = Chef::Config[:log_location]
7
8
  # or redirect logger using IO handle
@@ -0,0 +1,34 @@
1
+ # Go to http://wiki.merbivore.com/pages/init-rb
2
+
3
+ require 'config/dependencies-webui.rb'
4
+ unless defined?(Chef)
5
+ gem "chef", "=" + CHEF_SERVER_VERSION if CHEF_SERVER_VERSION
6
+ require 'chef'
7
+ end
8
+
9
+ File.umask Chef::Config[:umask]
10
+
11
+ use_test :rspec
12
+ use_template_engine :haml
13
+
14
+ Merb::Config.use do |c|
15
+ c[:use_mutex] = false
16
+ c[:fork_for_class_load] = false
17
+ c[:session_id_key] = '_chef_server_session_id'
18
+ c[:session_secret_key] = Chef::Config.manage_secret_key
19
+ c[:session_store] = 'cookie'
20
+ c[:log_level] = Chef::Config[:log_level]
21
+ if Chef::Config[:log_location].kind_of?(String)
22
+ c[:log_file] = Chef::Config[:log_location]
23
+ end
24
+ end
25
+
26
+ Merb::BootLoader.before_app_loads do
27
+ # This will get executed after dependencies have been loaded but before your app's classes have loaded.
28
+ end
29
+
30
+ Merb::BootLoader.after_app_loads do
31
+ # This will get executed after your app's classes have been loaded.
32
+ OpenID::Util.logger = Merb.logger
33
+ end
34
+
data/config/init.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # Go to http://wiki.merbivore.com/pages/init-rb
2
-
2
+
3
3
  require 'config/dependencies.rb'
4
4
  unless defined?(Chef)
5
5
  gem "chef", "=" + CHEF_SERVER_VERSION if CHEF_SERVER_VERSION
@@ -13,13 +13,11 @@ use_template_engine :haml
13
13
 
14
14
  Merb::Config.use do |c|
15
15
  c[:use_mutex] = false
16
- c[:session_id_key] = '_chef_server_session_id'
17
- c[:session_secret_key] = Chef::Config.manage_secret_key
18
- c[:session_store] = 'cookie'
19
- c[:exception_details] = true
20
- c[:reload_classes] = false
16
+ c[:fork_for_class_load] = false
21
17
  c[:log_level] = Chef::Config[:log_level]
22
- c[:log_stream] = Chef::Config[:log_location]
18
+ if Chef::Config[:log_location].kind_of?(String)
19
+ c[:log_file] = Chef::Config[:log_location]
20
+ end
23
21
  end
24
22
 
25
23
  Merb::BootLoader.before_app_loads do
@@ -27,6 +25,6 @@ Merb::BootLoader.before_app_loads do
27
25
  end
28
26
 
29
27
  Merb::BootLoader.after_app_loads do
30
- # This will get executed after your app's classes have been loaded.
31
- OpenID::Util.logger = Merb.logger
28
+ # This will get executed after your app's classes have been loaded. OpenID::Util.logger = Merb.logger
32
29
  end
30
+
data/config/rack.rb CHANGED
@@ -1,3 +1,5 @@
1
+ $: << File.join(File.dirname(__FILE__))
2
+
1
3
  # use PathPrefix Middleware if :path_prefix is set in Merb::Config
2
4
  if prefix = ::Merb::Config[:path_prefix]
3
5
  use Merb::Rack::PathPrefix, prefix
data/config/router.rb CHANGED
@@ -29,16 +29,11 @@ Merb.logger.info("Compiling routes...")
29
29
  Merb::Router.prepare do
30
30
  # RESTful routes
31
31
  # resources :posts
32
-
32
+
33
33
  # Adds the required routes for merb-auth using the password slice
34
34
  # slice(:merb_auth_slice_password, :name_prefix => nil, :path_prefix => "")
35
- slice(:chef_server_slice)
36
- # This is the default route for /:controller/:action/:id
37
- # This is fine for most cases. If you're heavily using resource-based
38
- # routes, you may want to comment/remove this line to prevent
39
- # clients from calling your create or destroy actions with a GET
40
- default_routes
41
-
42
- # Change this for your home page to be available at /
43
- # match('/').to(:controller => 'whatever', :action =>'index')
35
+
36
+ slice(:chef_server_api, :path_prefix => "") if defined?(ChefServerApi)
37
+ slice(:chef_server_webui, :path_prefix => "") if defined?(ChefServerWebui)
38
+
44
39
  end
@@ -13,14 +13,13 @@ spec = Gem::Specification.new do |s|
13
13
  s.email = EMAIL
14
14
  s.homepage = HOMEPAGE
15
15
 
16
- %w{stomp stompserver ferret
17
- merb-core merb-haml merb-assets
18
- merb-helpers mongrel haml
16
+ %w{ merb-core merb-haml merb-assets
17
+ merb-helpers thin haml
19
18
  ruby-openid json coderay}.each { |gem| s.add_dependency gem }
20
19
 
21
20
  s.bindir = "bin"
22
- s.executables = %w( chef-server chef-indexer )
23
- s.files = %w(LICENSE README.rdoc config.ru) + Dir.glob("{app,bin,config,lib,public}/**/*")
21
+ s.executables = %w( chef-server chef-server-webui )
22
+ s.files = %w(LICENSE README.rdoc config.ru config-webui.ru) + Dir.glob("{app,bin,config,lib,public}/**/*")
24
23
  end
25
24
 
26
25
  Rake::GemPackageTask.new(spec) do |pkg|
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.16
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 8
8
+ - 2
9
+ version: 0.8.2
5
10
  platform: ruby
6
11
  authors:
7
12
  - Opscode
@@ -9,134 +14,122 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-12-22 00:00:00 -08:00
17
+ date: 2010-02-28 00:00:00 -08:00
13
18
  default_executable:
14
19
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: stomp
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: stompserver
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: ferret
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: "0"
44
- version:
45
20
  - !ruby/object:Gem::Dependency
46
21
  name: merb-core
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
50
24
  requirements:
51
25
  - - ">="
52
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
53
29
  version: "0"
54
- version:
30
+ type: :runtime
31
+ version_requirements: *id001
55
32
  - !ruby/object:Gem::Dependency
56
33
  name: merb-haml
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
60
36
  requirements:
61
37
  - - ">="
62
38
  - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
63
41
  version: "0"
64
- version:
42
+ type: :runtime
43
+ version_requirements: *id002
65
44
  - !ruby/object:Gem::Dependency
66
45
  name: merb-assets
67
- type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
46
+ prerelease: false
47
+ requirement: &id003 !ruby/object:Gem::Requirement
70
48
  requirements:
71
49
  - - ">="
72
50
  - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
73
53
  version: "0"
74
- version:
54
+ type: :runtime
55
+ version_requirements: *id003
75
56
  - !ruby/object:Gem::Dependency
76
57
  name: merb-helpers
77
- type: :runtime
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
58
+ prerelease: false
59
+ requirement: &id004 !ruby/object:Gem::Requirement
80
60
  requirements:
81
61
  - - ">="
82
62
  - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
83
65
  version: "0"
84
- version:
85
- - !ruby/object:Gem::Dependency
86
- name: mongrel
87
66
  type: :runtime
88
- version_requirement:
89
- version_requirements: !ruby/object:Gem::Requirement
67
+ version_requirements: *id004
68
+ - !ruby/object:Gem::Dependency
69
+ name: thin
70
+ prerelease: false
71
+ requirement: &id005 !ruby/object:Gem::Requirement
90
72
  requirements:
91
73
  - - ">="
92
74
  - !ruby/object:Gem::Version
75
+ segments:
76
+ - 0
93
77
  version: "0"
94
- version:
78
+ type: :runtime
79
+ version_requirements: *id005
95
80
  - !ruby/object:Gem::Dependency
96
81
  name: haml
97
- type: :runtime
98
- version_requirement:
99
- version_requirements: !ruby/object:Gem::Requirement
82
+ prerelease: false
83
+ requirement: &id006 !ruby/object:Gem::Requirement
100
84
  requirements:
101
85
  - - ">="
102
86
  - !ruby/object:Gem::Version
87
+ segments:
88
+ - 0
103
89
  version: "0"
104
- version:
90
+ type: :runtime
91
+ version_requirements: *id006
105
92
  - !ruby/object:Gem::Dependency
106
93
  name: ruby-openid
107
- type: :runtime
108
- version_requirement:
109
- version_requirements: !ruby/object:Gem::Requirement
94
+ prerelease: false
95
+ requirement: &id007 !ruby/object:Gem::Requirement
110
96
  requirements:
111
97
  - - ">="
112
98
  - !ruby/object:Gem::Version
99
+ segments:
100
+ - 0
113
101
  version: "0"
114
- version:
102
+ type: :runtime
103
+ version_requirements: *id007
115
104
  - !ruby/object:Gem::Dependency
116
105
  name: json
117
- type: :runtime
118
- version_requirement:
119
- version_requirements: !ruby/object:Gem::Requirement
106
+ prerelease: false
107
+ requirement: &id008 !ruby/object:Gem::Requirement
120
108
  requirements:
121
109
  - - ">="
122
110
  - !ruby/object:Gem::Version
111
+ segments:
112
+ - 0
123
113
  version: "0"
124
- version:
114
+ type: :runtime
115
+ version_requirements: *id008
125
116
  - !ruby/object:Gem::Dependency
126
117
  name: coderay
127
- type: :runtime
128
- version_requirement:
129
- version_requirements: !ruby/object:Gem::Requirement
118
+ prerelease: false
119
+ requirement: &id009 !ruby/object:Gem::Requirement
130
120
  requirements:
131
121
  - - ">="
132
122
  - !ruby/object:Gem::Version
123
+ segments:
124
+ - 0
133
125
  version: "0"
134
- version:
126
+ type: :runtime
127
+ version_requirements: *id009
135
128
  description: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
136
129
  email: chef@opscode.com
137
130
  executables:
138
131
  - chef-server
139
- - chef-indexer
132
+ - chef-server-webui
140
133
  extensions: []
141
134
 
142
135
  extra_rdoc_files:
@@ -146,19 +139,22 @@ files:
146
139
  - LICENSE
147
140
  - README.rdoc
148
141
  - config.ru
142
+ - config-webui.ru
149
143
  - app/controllers/application.rb
150
144
  - app/helpers/global_helpers.rb
151
145
  - app/views/exceptions/not_acceptable.html.erb
152
146
  - app/views/exceptions/not_found.html.erb
153
147
  - app/views/layout/application.html.erb
154
- - bin/chef-indexer
155
148
  - bin/chef-server
149
+ - bin/chef-server-webui
150
+ - config/dependencies-webui.rb
156
151
  - config/dependencies.rb
157
152
  - config/environments/development.rb
158
153
  - config/environments/production.rb
159
154
  - config/environments/rake.rb
160
155
  - config/environments/staging.rb
161
156
  - config/environments/test.rb
157
+ - config/init-webui.rb
162
158
  - config/init.rb
163
159
  - config/rack.rb
164
160
  - config/router.rb
@@ -186,18 +182,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
182
  requirements:
187
183
  - - ">="
188
184
  - !ruby/object:Gem::Version
185
+ segments:
186
+ - 0
189
187
  version: "0"
190
- version:
191
188
  required_rubygems_version: !ruby/object:Gem::Requirement
192
189
  requirements:
193
190
  - - ">="
194
191
  - !ruby/object:Gem::Version
192
+ segments:
193
+ - 0
195
194
  version: "0"
196
- version:
197
195
  requirements: []
198
196
 
199
197
  rubyforge_project:
200
- rubygems_version: 1.3.5
198
+ rubygems_version: 1.3.6
201
199
  signing_key:
202
200
  specification_version: 3
203
201
  summary: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
data/bin/chef-indexer DELETED
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # ./chef-indexer - Run the chef indexer
4
- #
5
- # Author:: AJ Christensen (<aj@opscode.com>)
6
- # Copyright:: Copyright (c) 2008 Opscode, Inc.
7
- # License:: Apache License, Version 2.0
8
- #
9
- # Licensed under the Apache License, Version 2.0 (the "License");
10
- # you may not use this file except in compliance with the License.
11
- # You may obtain a copy of the License at
12
- #
13
- # http://www.apache.org/licenses/LICENSE-2.0
14
- #
15
- # Unless required by applicable law or agreed to in writing, software
16
- # distributed under the License is distributed on an "AS IS" BASIS,
17
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- # See the License for the specific language governing permissions and
19
- # limitations under the License.
20
-
21
- $: << File.join(File.dirname(__FILE__), "..", "lib")
22
-
23
- require 'rubygems'
24
- require 'chef/application/indexer'
25
-
26
- Chef::Application::Indexer.new.run