Advertisement
Guest User

Untitled

a guest
Sep 1st, 2016
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. configuration = {
  2. gmail: {
  3. username: 'example@gmail.com',
  4. password: 'pa$$word',
  5. host: 'imap.gmail.com',
  6. ssl: true,
  7. port: 993
  8. },
  9. ftp: {
  10. username: 'example@gmail.com',
  11. password: 'pa$$word',
  12. host: 'imap.gmail.com',
  13. ssl: true,
  14. port: 42
  15. }
  16. }
  17.  
  18. mail = Mail.new host: configuration[:gmail][:host], port: configuration[:gmail][:port], username: configuration[:gmail][:username], password: configuration[:gmail][:password], ssl: configuration[:gmail][:ssl]
  19. ftp = FTP.new host: configuration[:ftp][:host], port: configuration[:ftp][:port], username: configuration[:ftp][:username], password: configuration[:ftp][:password], ssl: configuration[:ftp][:ssl]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement