Sha256: cfef3fa339c85ef996c15dc979d95f1bb8b58fe03b2396491d6c34afb7654804
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 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. Example:" puts "" puts " #{File.basename $0} techinicalpickles jeweler" 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? puts "." 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? puts "." 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.1 | bin/gemstalk |