recipes/default.rb in chef-sugar-3.6.0 vs recipes/default.rb in chef-sugar-4.0.0
- old
+ new
@@ -15,20 +15,6 @@
# 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.
#
-gem_version = run_context.cookbook_collection[cookbook_name].metadata.version
-
-if Chef::Resource::ChefGem.instance_methods(false).include?(:compile_time)
- chef_gem 'chef-sugar' do
- version gem_version
- compile_time true
- end
-else
- chef_gem 'chef-sugar' do
- version gem_version
- action :nothing
- end.run_action(:install)
-end
-
-require 'chef/sugar'
+Chef::Log.warn('chef-sugar::default no longer needs to be included in your runlist. Instead simply depend on the chef-sugar cookbook and the gem will be intalled and loaded automatically.')