Sha256: 3159ee484f4f2383b8915941d30cae4c67a0b32054e9b405f1795c1e27e6997a

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 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/sweat_shop/lib/sweat_shop/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

5 entries across 5 versions & 4 rubygems

Version Path
famoseagle-sweat_shop-1.3.0 script/sweatshop
famoseagle-sweat_shop-1.3.1 script/sweatshop
sa-sweat_shop-1.4.3 script/sweatshop
sweatshop-1.4.0 script/sweatshop
sweat_shop-1.4.0 script/sweatshop