From 6233c6c97dd604a736c96d87647528142775eed4 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Wed, 13 May 2015 12:40:40 -0400 Subject: [PATCH] Code cleanup (remove debug), added supports os. --- metadata.rb | 6 +++++- recipes/default.rb | 10 ---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/metadata.rb b/metadata.rb index 2389ebc..e7ed5cb 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,11 @@ maintainer_email 'erenfro@linux-help.org' license 'All rights reserved' description 'Configures sudo rules from data bags using the sudo cookbook' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.1.1' +version '0.1.2' + +%w(redhat centos fedora ubuntu debian freebsd mac_os_x).each do |os| + supports os +end depends 'sudo', '>= 2.7.1' diff --git a/recipes/default.rb b/recipes/default.rb index 966e950..d68479f 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -83,16 +83,6 @@ else commands rule_commands defaults rule_defaults end - - #puts "ID: #{rule["id"]}" - #puts "Name: #{rule_name}" - #puts "Action: #{rule_action}" - #puts "User: #{rule_user}" - #puts "Runas: #{rule_runas}" - #puts "Nopasswd #{rule_nopasswd}" - #puts "Commands: #{rule_commands}" - #puts "Defaults: #{rule_defaults}" - #puts "--" end end