diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chef-apply | 24 | ||||
-rwxr-xr-x | bin/chef-client | 25 | ||||
-rwxr-xr-x | bin/chef-resource-inspector | 26 | ||||
-rwxr-xr-x | bin/chef-service-manager | 37 | ||||
-rwxr-xr-x | bin/chef-shell | 31 | ||||
-rwxr-xr-x | bin/chef-solo | 24 | ||||
-rwxr-xr-x | bin/chef-windows-service | 34 |
7 files changed, 0 insertions, 201 deletions
diff --git a/bin/chef-apply b/bin/chef-apply deleted file mode 100755 index ddbdc66907..0000000000 --- a/bin/chef-apply +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env ruby -# -# ./chef-apply - Run a single chef recipe -# -# Author:: Bryan W. Berry (<bryan.berry@gmail.com>) -# Copyright:: Copyright 2012-2016, Bryan W. Berry -# License:: Apache License, Version 2.0 -# -# 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. - -$:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) -require "chef/application/apply" - -Chef::Application::Apply.new.run diff --git a/bin/chef-client b/bin/chef-client deleted file mode 100755 index af27d7903d..0000000000 --- a/bin/chef-client +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env ruby -# -# ./chef-client - Run the chef client -# -# Author:: AJ Christensen (<aj@chef.io>) -# Copyright:: Copyright 2008-2018, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# 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. - -$:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) -require "chef" -require "chef/application/client" - -Chef::Application::Client.new.run diff --git a/bin/chef-resource-inspector b/bin/chef-resource-inspector deleted file mode 100755 index 6a7eac0c32..0000000000 --- a/bin/chef-resource-inspector +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env ruby -# -# ./chef-resource-inspector - Find information about a resource -# -# Copyright:: Copyright (c) 2018, Chef Software, Inc -# License:: Apache License, Version 2.0 -# -# 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. - -Encoding.default_external = Encoding::UTF_8 - -$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) - -require "chef/resource_inspector" - -ResourceInspector.start diff --git a/bin/chef-service-manager b/bin/chef-service-manager deleted file mode 100755 index 9021824fed..0000000000 --- a/bin/chef-service-manager +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env ruby -# -# ./chef-service-manager - Control chef-service on Windows platforms. -# -# Author:: Serdar Sutay (serdar@chef.io) -# Copyright:: Copyright 2013-2018, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# 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. - -$:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) -require "chef" -require "chef/application/windows_service_manager" - -if Chef::Platform.windows? - chef_client_service = { - service_name: "chef-client", - service_display_name: "Chef Client Service", - service_description: "Runs Chef Client on regular, configurable intervals.", - service_file_path: File.expand_path("../chef-windows-service", $PROGRAM_NAME), - delayed_start: true, - dependencies: ["Winmgmt"], - } - Chef::Application::WindowsServiceManager.new(chef_client_service).run -else - puts "chef-service-manager is only available on Windows platforms." -end diff --git a/bin/chef-shell b/bin/chef-shell deleted file mode 100755 index 666ce1944c..0000000000 --- a/bin/chef-shell +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env ruby -# -# ./chef-shell - Run the Chef REPL (Shell) -# -# Author:: Daniel DeLeo (<dan@kallistec.com>) -# Copyright:: Copyright 2009-2018 Chef Software, Inc. -# License:: Apache License, Version 2.0 -# -# 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. - -Encoding.default_external = Encoding::UTF_8 - -require "irb" -require "irb/completion" -require "irb/ext/save-history" - -$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) - -require "chef/shell" - -Shell.start diff --git a/bin/chef-solo b/bin/chef-solo deleted file mode 100755 index 06c0452d26..0000000000 --- a/bin/chef-solo +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env ruby -# -# ./chef-solo - Run the chef client, in stand-alone mode -# -# Author:: AJ Christensen (<aj@chef.io>) -# Copyright:: Copyright 2008-2018, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# 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. - -$:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) -require "chef/application/solo" - -Chef::Application::Solo.new.run diff --git a/bin/chef-windows-service b/bin/chef-windows-service deleted file mode 100755 index 646e3b4a93..0000000000 --- a/bin/chef-windows-service +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 |