Sha256: 2c0af455b3ae257f2bb0cc54a28c264c47c46be085717652fc33065c03b094d4

Contents?: true

Size: 706 Bytes

Versions: 7

Compression:

Stored size: 706 Bytes

Contents

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

check_comments = 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
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'
  LinkedinOrbit::Scripts::CheckComments.start(ARGV)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
linkedin_orbit-0.1.4 bin/linkedin_orbit
linkedin_orbit-0.1.3 bin/linkedin_orbit
linkedin_orbit-0.1.2 bin/linkedin_orbit
linkedin_orbit-0.1.1 bin/linkedin_orbit
linkedin_orbit-0.1.0 bin/linkedin_orbit
linkedin_orbit-0.0.2 bin/linkedin_orbit
linkedin_orbit-0.0.1 bin/linkedin_orbit