summaryrefslogtreecommitdiff
path: root/lib/chef/provider/log.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-03-16 11:30:31 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-03-16 11:30:31 -0700
commit83a74d7fbc68af3d3fe6cbb5f1f4490ed05e8054 (patch)
treed20c383eb1e2ac00ab717cd767bd7cb17cce49df /lib/chef/provider/log.rb
parent6b95fbfeb12c18ead46afacfd68cd371350edb2c (diff)
downloadchef-83a74d7fbc68af3d3fe6cbb5f1f4490ed05e8054.tar.gz
properly remove the provider
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/log.rb')
-rw-r--r--lib/chef/provider/log.rb43
1 files changed, 0 insertions, 43 deletions
diff --git a/lib/chef/provider/log.rb b/lib/chef/provider/log.rb
deleted file mode 100644
index 54e324cc11..0000000000
--- a/lib/chef/provider/log.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Author:: Cary Penniman (<cary@rightscale.com>)
-# Copyright:: Copyright 2008-2017, 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.
-#
-
-class Chef
- class Provider
- class Log
- # Chef log provider, allows logging to chef's logs
- class ChefLog < Chef::Provider
- provides :log, target_mode: true
-
- # No concept of a 'current' resource for logs, this is a no-op
- #
- # @return [true] Always returns true
- def load_current_resource
- true
- end
-
- # Write the log to Chef's log
- #
- # @return [true] Always returns true
- action :write do
- logger.send(new_resource.level, new_resource.message)
- new_resource.updated_by_last_action(true) if Chef::Config[:count_log_resource_updates]
- end
- end
- end
- end
-end