Permalink
Browse files

switch to puts

  • Loading branch information...
1 parent e276659 commit 22da587eccad0cd078af36277d2e5abce7d4f4a2 @eric-roland committed Apr 30, 2012
Showing with 6 additions and 12 deletions.
  1. +6 −12 cookbooks/sphinx/recipes/default.rb
@@ -1,9 +1,3 @@
-require 'chef/log'
-
-log "some string to log" do
- level :info # (default) also supports :warn, :debug, and :error
-end
-
#
# Cookbook Name:: sphinx
# Recipe:: default
@@ -40,11 +34,11 @@
if utility_name
sphinx_host = node[:utility_instances].find {|u| u[:name] == utility_name }[:hostname]
- #log "node name #{node[:name]} utility name #{utility_name}"
+ puts "node name #{node[:name]} utility name #{utility_name}"
if node[:name] == utility_name
- #log "we entered after if node[:name] == utility_name"
+ puts "we entered after if node[:name] == utility_name"
run_for_app("appname") do |app_name, data|
- #log "app name #{app_name} data #{data}"
+ puts "app name #{app_name} data #{data}"
ey_cloud_report "Sphinx" do
message "configuring #{flavor}"
end
@@ -206,11 +200,11 @@
end
end
else
- #log "from else - node name #{node[:name]} utility name #{utility_name}"
+ puts "from else - node name #{node[:name]} utility name #{utility_name}"
if node[:name] == utility_name
- #log "inside the if statement"
+ puts "inside the if statement"
run_for_app("appname") do |app_name, data|
- #log "app name #{app_name} data #{data}"
+ puts "app name #{app_name} data #{data}"
ey_cloud_report "Sphinx" do
message "configuring #{flavor}"
end

0 comments on commit 22da587

Please sign in to comment.