Sha256: e700b0e2b16a78b0d30d94bee424b26b4ff99707e86097913bd34d472837c3da
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift(File.dirname(__FILE__), '..', 'lib') require 'gem_stalker' def usage puts "" puts "Usage:" puts "" puts " #{File.basename $0} <username> <repository> [version]" puts "" puts "Begins stalking a gem at the specified location e.g. stalk techinicalpickles jeweler" puts "" end if ARGV.length == 0 || ARGV.include?("-h") || ARGV.include?("--help") usage exit end trap "SIGINT" do puts "" puts "Stopping" exit end options = {:username => ARGV[0], :repository => ARGV[1]} options[:version] = ARGV[2] if ARGV.length >= 3 stalker = GemStalker.new(options) $stdout.sync = true unless stalker.gem? puts "The repository is not configured as a rubygem yet." puts "Go to the following url, and check 'RubyGem'" puts "\t#{stalker.edit_repo_url}" exit end if ARGV.length < 3 puts "Using version #{stalker.version}" end waiting = false puts "Checking to see if the gem has been built:" loop do if stalker.built? put "." if waiting puts "=> Zomg, it's built, I'm so telling everyone!" break end print "." waiting = true sleep(5) end waiting = false puts "Checking to see if it is in the specfile" loop do if stalker.in_specfile? put "." if waiting puts "=> Sweeeet, everyone can install it now!" break end print "." waiting = true sleep(5) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
technicalpickles-gemstalker-0.3.0 | bin/gemstalk |