Sha256: ca32f8a9b520b4dc78d8f596547be81f8411ffdbc367013bca4a8f606618f592

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

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

check_comments = false
check_followers = false

options = {}
choices = OptionParser.new do |opts|
  opts.banner = "Usage: dev_orbit --check-comments"
  opts.on("-h", "--help", "Prints help instructions") do
    puts opts
    exit
  end
  opts.on("--check-comments", "Check for new DEV comments") do
    check_comments = true
  end
  opts.on("--check-followers", "Check for new DEV followers") do
    check_followers = true
  end
end.parse!

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

require_relative '../lib/dev_orbit'
require_relative '../scripts/check_comments'

if check_comments
  puts "Checking for new DEV comments within the past day and posting them to your Orbit workspace..."
  ARGV[0] = 'render'
  DevOrbit::Scripts::CheckComments.start(ARGV)
end

if check_followers
  puts "Checking for new DEV followers posting them to your Orbit workspace..."
  ARGV[0] = 'render'
  DevOrbit::Scripts::CheckComments.start(ARGV)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dev_orbit-0.0.10 bin/dev_orbit
dev_orbit-0.0.9 bin/dev_orbit