lib/poolparty/poolparty/poolparty_base_class.rb
# Add the parent's options to my own and add myself as a service if I am not a resource
Add the parent's options to my own and add myself as a service if I am not a resource
Add the parent ' s options to my own and add myself as a service if I am not a resource
def add_to_parent_if_parent_exists_and_is_a_service      
      if parent && !parent.is_a?(PoolParty::Resources::Resource)
        dsl_options.merge!(parent.dsl_options) if parent.is_a?(PoolParty::Pool::Pool)
        parent.add_service(self) if parent.respond_to?(:add_service) && !is_a_resource?
      end
    end
def add_to_parent_if_parent_exists_and_is_a_service if parent && ! parent . is_a? ( PoolParty :: Resources :: Resource ) dsl_options . merge! ( parent . dsl_options ) if parent . is_a? ( PoolParty :: Pool :: Pool ) parent . add_service ( self ) if parent . respond_to? ( :add_service ) && ! is_a_resource? end end
Add the parent's options to my own and add myself as a service if I am not a resource
Add the parent ' s options to my own and add myself as a service if I am not a resource