Sha256: 6bae6d7f20b67155518d91a600f55635371e40a1d2fd3fb0889c65f2e19866b7

Contents?: true

Size: 1.11 KB

Versions: 48

Compression:

Stored size: 1.11 KB

Contents

#!/usr/bin/env ruby
#
# Author:: Jay Mundrawala (<jdm@chef.io>)
#
# Copyright:: 2014-2018, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Note:
# The file is used by appbundler to generate a ruby file that
# we can execute using the correct gems. The batch file we
# generate will call that file, and will be registered as
# a windows service.

$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "chef"
require "chef/application/windows_service"

if Chef::Platform.windows?
  Chef::Application::WindowsService.mainloop
else
  puts "chef-windows-service is only available on Windows platforms."
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
chef-bin-15.17.4 bin/chef-windows-service
chef-bin-15.16.7 bin/chef-windows-service
chef-bin-15.16.4 bin/chef-windows-service
chef-bin-15.16.2 bin/chef-windows-service
chef-bin-15.15.0 bin/chef-windows-service
chef-bin-15.14.0 bin/chef-windows-service
chef-bin-16.4.41 bin/chef-windows-service
chef-bin-16.4.38 bin/chef-windows-service
chef-bin-16.4.35 bin/chef-windows-service
chef-bin-16.3.45 bin/chef-windows-service
chef-bin-15.13.8 bin/chef-windows-service
chef-bin-16.3.38 bin/chef-windows-service
chef-bin-16.2.73 bin/chef-windows-service
chef-bin-15.12.22 bin/chef-windows-service
chef-bin-16.2.50 bin/chef-windows-service
chef-bin-16.2.44 bin/chef-windows-service
chef-bin-15.11.8 bin/chef-windows-service
chef-bin-16.1.16 bin/chef-windows-service
chef-bin-15.11.3 bin/chef-windows-service
chef-bin-16.1.0 bin/chef-windows-service