Sha256: 7dad8e90cd185a25ca9bea2da15968a83d34e10b5af5c3c794353beba0a47610

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

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'
require_relative '../scripts/check_followers'

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::CheckFollowers.start(ARGV)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dev_orbit-0.1.6 bin/dev_orbit
dev_orbit-0.1.5 bin/dev_orbit
dev_orbit-0.1.4 bin/dev_orbit
dev_orbit-0.1.3 bin/dev_orbit
dev_orbit-0.1.2 bin/dev_orbit