lib/modules/email_templates.rb
##################################
# Unlock/Reset dev account email ###
##################################
Unlock/Reset dev account email
Unlock / Reset dev account email
def dev_account(type)
      ticket_num = verify_digits(num)
      dev_user = users_name
      dev_id = user_id
      domain = dev_domain
      server = dev_server
      unlock = <<-_UNLOCK_
** SUBJECT: RE: INC00000#{ticket_num} - DEV Account Unlock Request **
** TO: zzNuAxis@aol.com **
** CC: ocio.remedy@aol.com **
User ID: #{dev_id}
Customer Name: #{dev_user}
Domain - #{domain}
Server: #{server}
V/R
#{get_user}
IT DEPARTMENT
      _UNLOCK_
      reset = <<-_RESET_
** SUBJECT: RE: INC00000#{ticket_num} - DEV Account Password Reset Request **
** TO: zzNuAxis@aol.com **
** CC: ocio.remedy@aol.com **
User ID: #{dev_id}
Customer Name: #{dev_user}
Domain - #{domain}
Server: #{server}
V/R
#{get_user}
IT DEPARTMENT
      _RESET_
      if type =~ /unlock/
        email_type = unlock
      elsif type =~ /reset/
        email_type = reset
      else
        FORMAT.warning('No flag given defaulting to unlock')
        email_type = unlock
      end
      copy(email_type)
    end
def dev_account ( type ) ticket_num = verify_digits ( num ) dev_user = users_name dev_id = user_id domain = dev_domain server = dev_server unlock = <<-_UNLOCK_ 
** SUBJECT: RE: INC00000 #{ ticket_num }  - DEV Account Unlock Request **
** TO: zzNuAxis@aol.com **
** CC: ocio.remedy@aol.com **

User ID:  #{ dev_id } 
Customer Name:  #{ dev_user } 
Domain -  #{ domain } 
Server:  #{ server } 

V/R
 #{ get_user } 
IT DEPARTMENT
       _UNLOCK_ reset = <<-_RESET_ 
** SUBJECT: RE: INC00000 #{ ticket_num }  - DEV Account Password Reset Request **
** TO: zzNuAxis@aol.com **
** CC: ocio.remedy@aol.com **

User ID:  #{ dev_id } 
Customer Name:  #{ dev_user } 
Domain -  #{ domain } 
Server:  #{ server } 

V/R
 #{ get_user } 
IT DEPARTMENT
       _RESET_ if type =~ / unlock / email_type = unlock elsif type =~ / reset / email_type = reset else FORMAT . warning ( 'No flag given defaulting to unlock' ) email_type = unlock end copy ( email_type ) end
Unlock/Reset dev account email
Unlock / Reset dev account email
type
<not_specific>