Module: Rdomino::PersonDoc

Defined in:
lib/rdomino/1modules.rb

Instance Method Summary collapse

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

#maildbObject



59
60
61
# File 'lib/rdomino/1modules.rb', line 59

def maildb
  Session.get["#{get :mailserver}!!#{get :mailfile}"]
end

#maildb_clusterObject



63
64
65
# File 'lib/rdomino/1modules.rb', line 63

def maildb_cluster
  Session.get["#{cluster(get(:mailserver)[0])}!!#{get :mailfile}"]
end