Module: Rdomino::PersonDoc
- Defined in:
- lib/rdomino/1modules.rb
Instance Method Summary collapse
-
#cluster(s) ⇒ Object
CN=EU-MAIL36/OU=DE/O=BAYER“.
- #maildb ⇒ Object
- #maildb_cluster ⇒ Object
Instance Method Details
#cluster(s) ⇒ Object
CN=EU-MAIL36/OU=DE/O=BAYER“
67 68 69 70 71 72 73 74 |
# File 'lib/rdomino/1modules.rb', line 67 def cluster(s) # CN=EU-MAIL36/OU=DE/O=BAYER" server,*ou = s.split("/") nr = server[-2..-1] h={'35'=>'36','37' => '38'} clnr = h[nr] || h.invert[nr] raise "cluster not defined" unless clnr ou.insert(0,server[0..-3]+clnr).join("/") end |