Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch unified_mode to resource not provider #240

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions providers/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

provides :chef_client_updater if respond_to?(:provides) # cookstyle: disable ChefModernize/RespondToProvides

unified_mode true if respond_to?(:unified_mode)

def load_mixlib_install
gem 'mixlib-install', '~> 3.12'
require 'mixlib/install'
Expand Down
2 changes: 2 additions & 0 deletions resources/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

provides :chef_client_updater

unified_mode true if respond_to?(:unified_mode)

actions [:update]
default_action :update

Expand Down