Thooms / issues-reminder

1 stars 0 forks source link

Change the way we build the entire job #4

Closed Thooms closed 8 years ago

Thooms commented 8 years ago

For now we do it like that:

r = reminder.Reminder(
        'settings.yaml',
        senders_clss=[senders.SlackSender, senders.StdOutSender],
        fetcher_clss=[fetchers.GitHubFetcher]
    )
r.run()

which means that the senders/fetchers classes are built internally. We might want to build them explicitely like this:

slack_sender = senders.SlackSender(args)
slack_sender.do_things()
[...]
r = reminder.Reminder(senders=slack_sender, [...])