//
archives

snippet

This tag is associated with 1 post

Ruby Class method to test for truth

I needed to test for truth in a Ruby class in my Chef LWRP cookbook and I wanted to use the question mark (?). Simple way to do it in a resource library: Now in the provider I can do: … if @new_resource.jdk_reinstall? … This is just a snippet reminder, if someone wants more context … Continue reading