|
Revision 1126, 341 bytes
(checked in by drnicwillia..@gmail.com, 1 year ago)
|
Re-adding script/generate for rubygems and rspec generators whilst developing Merb itsel
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/usr/bin/env ruby |
|---|
| 2 |
APP_ROOT = File.join(File.dirname(__FILE__), '..') |
|---|
| 3 |
|
|---|
| 4 |
begin |
|---|
| 5 |
require 'rubigen' |
|---|
| 6 |
rescue LoadError |
|---|
| 7 |
require 'rubygems' |
|---|
| 8 |
require 'rubigen' |
|---|
| 9 |
end |
|---|
| 10 |
require 'rubigen/scripts/destroy' |
|---|
| 11 |
|
|---|
| 12 |
ARGV.shift if ['--help', '-h'].include?(ARGV[0]) |
|---|
| 13 |
RubiGen::Base.use_component_sources! [:rubygems, :rspec] |
|---|
| 14 |
RubiGen::Scripts::Destroy.new.run(ARGV) |
|---|