Created
May 23, 2020 12:27
-
-
Save SahSantoshh/6c4a7de349fe2a63271a518acf01f1ae to your computer and use it in GitHub Desktop.
streaming.rake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :streaming do | |
desc 'Fetch updates of Accounts data from salesforce push stream and update in database' | |
task accounts_and_contacts: :environment do | |
subscriber = SalesforceSubscriber.new | |
subscriber.create_account_push_topic | |
subscriber.create_contact_push_topic | |
subscriber.subscribe | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment