lib/poolparty/modules/cloud_dsl.rb in fairchild-poolparty-1.1.5 vs lib/poolparty/modules/cloud_dsl.rb in fairchild-poolparty-1.2.12

- old
+ new

@@ -9,19 +9,21 @@ # # has_mount(:name => loc, :device => ebs_volume_device) # has_directory(:name => loc) # end - def dependency_resolver(name='puppet') - klass = name.preserved_class_constant("Resolver") - raise DependencyResolverException.new("Unknown resolver") unless klass - dsl_options[:dependency_resolver] = klass unless dsl_options[:dependency_resolver] - end - # Enable a service package - def enable(service);dsl_options[service] = :enabled;end + def enable(*services) + services.each do |service| + dsl_options[service] = :enabled + end + end # Disable a service package - def disable(service);dsl_options[service] = :disabled;end + def disable(*services) + services.each do |service| + dsl_options[service] = :disabled + end + end # Check to see if the package has been enabled def enabled?(srv);dsl_options.has_key?(srv) && dsl_options[srv] == :enabled;end # All services that are :enabled and have a plugin that corresponds, call on the cloud \ No newline at end of file