Sha256: 5a1a707ecc4481a7d58a31b0d82b3de6e724a42edaaebabb2f5fda3904601568
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
require 'fileutils' root = File.dirname(__FILE__) unless defined?(RAILS_ROOT) search_paths = %W{/.. /../.. /../../..} search_paths.each do |path| if File.exist?(root + path + '/config/environment.rb') RAILS_ROOT = root + path break end end end return unless RAILS_ROOT config = 'sweatshop.yml' script = 'sweatshop' FileUtils.cp(File.join(root, 'config', config), File.join(RAILS_ROOT, 'config', config)) FileUtils.cp(File.join(root, 'script', script), File.join(RAILS_ROOT, 'script', script)) puts "\n\ninstalled #{ [config, script].join(", ") } \n\n" puts IO.read(File.join(root, 'README.txt'))
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
famoseagle-sweat_shop-1.2.0 | install.rb |
famoseagle-sweat_shop-1.3.0 | install.rb |