+ execute "wp-cli plugin deactivate #{new_resource.plugin}" do
+ command "/opt/wp-cli/wp --path=#{site_directory} plugin deactivate #{new_resource.plugin}"
+ user node[:wordpress][:user]
+ group node[:wordpress][:group]
+ only_if { ::File.exist?("#{site_directory}/wp-config.php") }
+ end
+