Sha256: 95c5c74ff4556acf9f2a591cfac15b627dd5241b26b1c8035a0efbf3fb676f44
Contents?: true
Size: 996 Bytes
Versions: 2
Compression:
Stored size: 996 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::CheckFollowers.start(ARGV) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dev_orbit-0.1.1 | bin/dev_orbit |
dev_orbit-0.1.0 | bin/dev_orbit |