|
|
@ -21,11 +21,16 @@ Things you may want to cover: |
|
|
|
|
|
|
|
|
* Deployment instructions |
|
|
* Deployment instructions |
|
|
|
|
|
|
|
|
## How to test from the console |
|
|
## How to test |
|
|
|
|
|
|
|
|
|
|
|
### From the console |
|
|
|
|
|
|
|
|
|
|
|
EMAIL=email@outlook.com PASSWORD=micontrasenia bundle exec rake monitor:run |
|
|
|
|
|
### From the Rails console |
|
|
|
|
|
|
|
|
``` |
|
|
``` |
|
|
email = "" |
|
|
email = "email@outlook.com" |
|
|
password = "" |
|
|
password = "micontrasenia" |
|
|
res = FetchEmails.call(email: email, password: password, query_from: Time.now - 30.days) |
|
|
res = FetchEmails.call(email: email, password: password, query_from: Time.now - 30.days) |
|
|
|
|
|
|
|
|
res = MonitorInbox.call!(email: email,password: password) |
|
|
res = MonitorInbox.call!(email: email,password: password) |
|
|
|