lib/poolparty/dependency_resolver/puppet_resolver.rb
def option_type(ns=[])
      a_template = (self =~ /template/) == 0
      a_service = self =~ /^[A-Z][a-zA-Z]*\[[a-zA-Z0-9\-\.\"\'_\$\{\}\/]*\]/i
      a_function = self =~/(.)*\((.)*\)(.)*/
      if is_a?(PoolParty::Resources::Resource)
        self.to_s
      else
        (a_service || a_template || a_function) ? self : "'#{self}'"
      end    
    end
# This is the method we use to turn the options into a string to build the main 
# puppet manifests
This is the method we use to turn the options into a string to build the main
puppet manifests
This is the method we use to turn the options into a string to build the main puppet manifests
def option_type(ns=[])
      a_template = (self =~ /template/) == 0
      a_service = self =~ /^[A-Z][a-zA-Z]*\[[a-zA-Z0-9\-\.\"\'_\$\{\}\/]*\]/i
      a_function = self =~/(.)*\((.)*\)(.)*/
      if is_a?(PoolParty::Resources::Resource)
        self.to_s
      else
        (a_service || a_template || a_function) ? self : "'#{self}'"
      end    
    end
def option_type ( ns = [ ] ) a_template = ( self =~ / template / ) == 0 a_service = self =~ / ^[A-Z][a-zA-Z]* \[ [a-zA-Z0-9 \- \. \" \' _ \$ \{ \} \/ ]* \] /i a_function = self =~ / (.)* \( (.)* \) (.)* / if is_a? ( PoolParty :: Resources :: Resource ) self . to_s else ( a_service || a_template || a_function ) ? self : "'#{self}'" end end
This is the method we use to turn the options into a string to build the main
puppet manifests
This is the method we use to turn the options into a string to build the main puppet manifests
ns