diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-05-25 12:13:38 -0500 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-05-25 12:15:15 -0500 |
commit | 02b5706a1d1d58e8004ef0d26786bafc6fc36ba3 (patch) | |
tree | cc6d95da3d547aff64722fb2bed8411ad0a17d46 /lib/chef/provider/breakpoint.rb | |
parent | 29bea245bee7af04e01b12890cdfe54a34c29bbf (diff) | |
download | chef-02b5706a1d1d58e8004ef0d26786bafc6fc36ba3.tar.gz |
convert breakpoint resource to a custom resource
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/breakpoint.rb')
-rw-r--r-- | lib/chef/provider/breakpoint.rb | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/chef/provider/breakpoint.rb b/lib/chef/provider/breakpoint.rb deleted file mode 100644 index 9f8b8a6467..0000000000 --- a/lib/chef/provider/breakpoint.rb +++ /dev/null @@ -1,38 +0,0 @@ -# -# Author:: Daniel DeLeo (<dan@kallistec.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 Breakpoint < Chef::Provider - - provides :breakpoint - - def load_current_resource - end - - def action_break - if defined?(Shell) && Shell.running? - run_context.resource_collection.iterator.pause - new_resource.updated_by_last_action(true) - run_context.resource_collection.iterator - end - end - - end - end -end |