Sha256: 4db6c5bc54bdf409239f6f6b5ea6c1cc1c396e97277295b423c03b358e684813
Contents?: true
Size: 1004 Bytes
Versions: 2
Compression:
Stored size: 1004 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "optparse" check_event_checkins = false historical_import = false options = {} choices = OptionParser.new do |opts| opts.banner = "Usage: planningcenter_orbit --check-event-checkins" opts.on("-h", "--help", "Prints help instructions") do puts opts exit end opts.on("--check-event-checkins", "Check for new event check-ins on Planning Center") do check_event_checkins = true end opts.on("--historical-import", "Perform a historical import of all the Planning Center data") do historical_import = true end end.parse! $LOAD_PATH.unshift(File.expand_path("../lib/circle_orbit", __dir__)) require_relative "../lib/planningcenter_orbit" require_relative "../scripts/check_event_checkins" if check_event_checkins puts "Checking for new event check-ins and sending them to your Orbit workspace..." ARGV[0] = "render" ARGV[1] = historical_import PlanningcenterOrbit::Scripts::CheckEventCheckins.start(ARGV) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
planningcenter_orbit-0.0.2 | bin/planningcenter_orbit |
planningcenter_orbit-0.0.1 | bin/planningcenter_orbit |