1
0
mirror of synced 2026-01-01 00:02:54 -05:00
Files
airbyte/airbyte-integrations/connectors/source-mongodb/source.rb
Yury Koleda b1061e32d9 🎉 Add MongoDB Source
Signed-off-by: fut <fut.wrk@gmail.com>
2021-03-08 14:27:14 -08:00

17 lines
382 B
Ruby

require 'optparse'
require 'mongo'
require 'slop'
require_relative './lib/mongodb_source'
# require 'byebug'
parsed = Slop.parse do |o|
o.string '--config', 'Config file path'
o.string '--catalog', 'Catalog file path'
o.string '--state', 'State file path'
end
opts = parsed.to_hash.select { |_, value| value }
MongodbSource.new.public_send(parsed.arguments.first, **opts)