Sha256: faa83cdc70b8b5373c84f7cc157d8ce3f2f88f2682fc54dd48579fb05e06cda8
Contents?: true
Size: 757 Bytes
Versions: 9
Compression:
Stored size: 757 Bytes
Contents
require 'rbconfig' require 'find' require 'ftools' include Config # this was adapted from rdoc's install.rb by way of Log4r $sitedir = CONFIG["sitelibdir"] unless $sitedir version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"] $libdir = File.join(CONFIG["libdir"], "ruby", version) $sitedir = $:.find {|x| x =~ /site_ruby/ } if !$sitedir $sitedir = File.join($libdir, "site_ruby") elsif $sitedir !~ Regexp.quote(version) $sitedir = File.join($sitedir, version) end end # the actual gruntwork Dir.chdir("lib") Find.find("action_web_service", "action_web_service.rb") { |f| if f[-3..-1] == ".rb" File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true) else File::makedirs(File.join($sitedir, *f.split(/\//))) end }
Version data entries
9 entries across 9 versions & 1 rubygems