forked from mleung/feather
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdestroy
More file actions
executable file
·32 lines (25 loc) · 778 Bytes
/
destroy
File metadata and controls
executable file
·32 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env ruby
APP_ROOT = File.join(File.dirname(__FILE__), '..')
# required to overcome a callback in rspec
def at_exit
end
begin
require 'rubigen'
rescue LoadError
require 'rubygems'
require 'rubigen'
end
require File.join(File.dirname(__FILE__), "..", 'config', 'boot')
require (APP_ROOT / "config" / "merb_init" )
module Kernel
undef dependency if defined?(Kernel.dependency)
end
# Make the App's local gems available
Gem.clear_paths
Gem.path.unshift(APP_ROOT / "gems")
require 'rubigen/scripts/destroy'
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
# Default is to use rspec generators in gems. To change this to
# Test::Unit use [:merb, :test_unit]
RubiGen::Base.use_component_sources! Merb::GENERATOR_SCOPE
RubiGen::Scripts::Destroy.new.run(ARGV)