Sha256: 0f33a07062e455ca46d3843c190dc7866e8b64da5e69130d6826c29d4bba0985
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
#!/usr/bin/env ruby if ARGV.include?('-d') ARGV.delete('-d') ARGV.unshift('start') unless ARGV.detect{|a| ['start', 'restart'].include?(a)} root = File.expand_path(File.dirname(__FILE__) + '/..') ARGV << "--rails=#{root}" system("ruby #{root}/vendor/gems/sweatshop/lib/sweatshop/sweatd.rb #{ARGV.join(' ')}") exit $?.exitstatus else puts "Loading Rails..." require File.dirname(__FILE__) + '/../config/environment' puts "Listening for new tasks..." Sweatshop.do_all_tasks end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sweatshop-1.6.0 | script/sweatshop |
sweatshop-1.5.2 | script/sweatshop |
sweatshop-1.5.1 | script/sweatshop |
sweatshop-1.5.0 | script/sweatshop |