lib/poolparty/modules/resourcing_dsl.rb in auser-poolparty-0.2.71 vs lib/poolparty/modules/resourcing_dsl.rb in auser-poolparty-0.2.72
- old
+ new
@@ -8,15 +8,15 @@
def requires(str=nil)
# 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)
+ # if %w(absent running).map {|a| self.send a.to_sym}.include?(str)
str == "absent" ? is_absent : is_present
- else
- options.append!(:ensure => str)
- end
- str
+ # else
+ # options.append!(:ensure => str)
+ # end
+ # str
end
# Allows us to send an ensure to ensure the presence of a resource
def is_present(*args)
options.merge!(:ensure => present)
end
\ No newline at end of file