Add 'map-mash/' from commit '7f16409d1257e7471fef35c18bcdf32856b908e3'

git-subtree-dir: map-mash
git-subtree-mainline: eacc351b17
git-subtree-split: 7f16409d12
This commit is contained in:
Dan Buch
2013-01-09 23:59:47 -05:00
114 changed files with 19596 additions and 0 deletions

4
map-mash/script/about Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
require 'commands/about'

6
map-mash/script/autospec Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env ruby
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
ENV['RSPEC'] = 'true' # allows autotest to discover rspec
ENV['AUTOTEST'] = 'true' # allows autotest to run w/ color on linux
system((RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV) ||
$stderr.puts("Unable to find autotest. Please install ZenTest or fix your PATH")

3
map-mash/script/console Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/console'

3
map-mash/script/dbconsole Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/dbconsole'

3
map-mash/script/destroy Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/destroy'

9
map-mash/script/dev-reset Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
export RAILS_ENV=development
rm -v db/development.sqlite3
bundle exec rake db:create
if [[ -f db/development.sqlite3 ]]; then
bundle exec rake db:migrate
fi

3
map-mash/script/generate Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/generate'

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/benchmarker'

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/profiler'

3
map-mash/script/plugin Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/plugin'

3
map-mash/script/redis-runner Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
mkdir -p /tmp/rails-map-mash-redis
exec redis-server $(ruby -e "puts File.expand_path('../../config/redis.conf', '$0')")

View File

@@ -0,0 +1,5 @@
#!/bin/bash
exec ruby <<EORUBY
require File.expand_path('../../config/environment', '$0')
exec "resque-web --foreground --no-launch --port #{Setting.resque_web(:port)}"
EORUBY

3
map-mash/script/runner Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/runner'

3
map-mash/script/server Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server'

10
map-mash/script/spec Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env ruby
if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)}
require 'rubygems' unless ENV['NO_RUBYGEMS']
else
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT)
end
require 'spec/autorun'
exit ::Spec::Runner::CommandLine.run