Sha256: a5510076f8ff0555247426980f730653dfe91d41981f6da6dd26df83636537c8
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
Contents
# # installs rip like so: # ruby setup.rb # # upgrades rip like so: # ruby setup.rb upgrade # # also uninstalls rip like so: # ruby setup.rb uninstall # # probably requires sudo. # __DIR__ = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift File.join(__DIR__, 'lib') require "rip" include Rip::Setup # TODO: Use, like, real option parsing. --rue %w( bindir libdir ripdir ).each do |opt| if given = ARGV.grep(/--#{opt}=\S+/).last Rip::Setup.const_set(opt.upcase, File.expand_path(given.split("=").last)) end end if ARGV.include? 'uninstall' uninstall :verbose elsif ARGV.include? 'reinstall' uninstall install elsif ARGV.include? 'upgrade' upgrade elsif installed? puts "rip: already installed" else install end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rip-0.0.4 | setup.rb |
rip-0.0.5 | setup.rb |
rip-0.0.3 | setup.rb |
rip-0.0.2 | setup.rb |