Sha256: 127bbbe200e460f4d045da2045c78be000e7897a1773a3fd90a7e43abdf67c11

Contents?: true

Size: 583 Bytes

Versions: 8

Compression:

Stored size: 583 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"

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
famoseagle-sweat_shop-1.3.1 install.rb
sweatshop-1.6.0 install.rb
sweatshop-1.5.2 install.rb
sa-sweat_shop-1.4.3 install.rb
sweatshop-1.5.1 install.rb
sweatshop-1.5.0 install.rb
sweatshop-1.4.0 install.rb
sweat_shop-1.4.0 install.rb