lib/itamae-mitsurin/resource.rb in itamae-mitsurin-0.46 vs lib/itamae-mitsurin/resource.rb in itamae-mitsurin-0.47
- old
+ new
@@ -56,9 +56,10 @@
def define_resource(name, klass)
class_name = to_camel_case(name.to_s)
if Resource.const_defined?(class_name)
ItamaeMitsurin.logger.warn "Redefine class. (#{class_name})"
+ ItamaeMitsurin.file_logger.warn "Redefine class. (#{class_name})"
return
end
Resource.const_set(class_name, klass)
end