Sha256: 096c912d68546b2695cdafe9785aaa33be0f61d3d160dcaac5ae2394c82d7673

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/salesforce-bulkapi-notifier'

SalesforceBulkAPINotifier.configure do |c|
  c.slack_api_token = ENV['SLACK_API_TOKEN']
  c.slack_channel_name = ENV['SLACK_CHANNEL_NAME']
  c.salesforce_host = ENV['SALESFORCE_HOST']
  c.salesforce_user_id = ENV['SALESFORCE_USER_ID']
  c.salesforce_password = ENV['SALESFORCE_PASSWORD']
  c.salesforce_client_id = ENV['SALESFORCE_CLIENT_ID']
  c.salesforce_client_secret = ENV['SALESFORCE_CLIENT_SECRET']
  c.error_rate = ENV['ERROR_RATE'].to_i || 10
  c.interval_seconds = ENV['INTERVAL_SECONDS'].to_i || 60
  c.logger.level = :debug
end

exit SalesforceBulkAPINotifier.execute

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
salesforce-bulkapi-notifier-0.0.2 bin/runner