summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-04-29 15:10:36 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-04-29 15:10:36 -0700
commit688b72f47b4c3a23ca042336ea6c5d1f215ec263 (patch)
treeafd7cea189a44758edae6b711be81d7e7f2d31d2 /bin
parent945b9f6636bb3236999ca43f313113bf74045d82 (diff)
downloadchef-688b72f47b4c3a23ca042336ea6c5d1f215ec263.tar.gz
Remove chef-* binstubs from chef gem
This is for the relicensing effort. Note that this PR leaves the knife and ohai binstubs still in the gem(s) while that discussion is still ongoing. This PR extracts the binstubs to chef-binstubs gem which is not intended to be redistributed outside of the omnibus chef binaries. A blank gem for chef-binstubs has been pushed to rubygems.org for obvious security concerns and so that bundler/rubygems can resolve the gem Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chef-apply24
-rwxr-xr-xbin/chef-client25
-rwxr-xr-xbin/chef-resource-inspector26
-rwxr-xr-xbin/chef-service-manager37
-rwxr-xr-xbin/chef-shell31
-rwxr-xr-xbin/chef-solo24
-rwxr-xr-xbin/chef-windows-service34
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