[chef] Re: LWRP Boolean


Chronological Thread 
  • From: Thom May < >
  • To:
  • Subject: [chef] Re: LWRP Boolean
  • Date: Fri, 12 Apr 2013 13:59:29 +0100

:kind_of => [TrueClass, FalseClass]
-t


On Fri, Apr 12, 2013 at 1:56 PM, Cassiano Leal < " target="_blank"> > wrote:
Ohai Chefs!

What's the "correct" way to have a boolean attribute in a LWRP? There's no Boolean class in Ruby, so 

attribute :some_boolean, :kind_of => Boolean, :default => false

is not possible.

What's the solution?

Thanks,

- cassiano





Archive powered by MHonArc 2.6.16.

§