lib/poolparty/modules/resourcing_dsl.rb in auser-poolparty-0.2.16 vs lib/poolparty/modules/resourcing_dsl.rb in auser-poolparty-0.2.20

- old
+ new

@@ -4,10 +4,11 @@ # Allows us to send require to require a resource def require(str="") str ? options.merge!(:require => str) : options[:require] end def requires(str=nil) - str ? options.append!(:require => str) : options[:require] + # str ? options.append!(:require => str) : options[:require] + str ? options.append!(:require => send_if_method(str)) : options[:require] end def ensures(str="running") if %w(absent running).map {|a| self.send a.to_sym}.include?(str) str == "absent" ? is_absent : is_present else \ No newline at end of file