Sha256: 5212cd452514bd0a991f45fc664ebe3458cf0dbfbdef928707737f3bc3506757

Contents?: true

Size: 892 Bytes

Versions: 5

Compression:

Stored size: 892 Bytes

Contents

#!/usr/bin/env ruby
require 'optparse'

check_comments = false
historical_import = false

options = {}
choices = OptionParser.new do |opts|
  opts.banner = "Usage: linkedin_orbit --check-comments"
  opts.on("-h", "--help", "Prints help instructions") do
    puts opts
    exit
  end
  opts.on("--check-comments", "Check for new LinkedIn comments") do
    check_comments = true
  end
  opts.on("--historical-import", "Performa historical import of all LinkedIn interactions") do
    historical_import = true
  end
end.parse!

$LOAD_PATH.unshift(File.expand_path('../lib/dev_orbit', __dir__))

require_relative '../lib/linkedin_orbit'
require_relative '../scripts/check_comments'

if check_comments
  puts "Checking for new LinkedIn comments and posting them to your Orbit workspace..."
  ARGV[0] = 'render'
  ARGV[1] = historical_import
  LinkedinOrbit::Scripts::CheckComments.start(ARGV)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
linkedin_orbit-0.5.2 bin/linkedin_orbit
linkedin_orbit-0.5.1 bin/linkedin_orbit
linkedin_orbit-0.5.0 bin/linkedin_orbit
linkedin_orbit-0.3.0 bin/linkedin_orbit
linkedin_orbit-0.2.0 bin/linkedin_orbit