Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 11 lines (8 sloc) 0.276 kb
51fe6d0 @josevalim Refactor generators a little bit.
josevalim authored
1 require 'rails/generators'
a9f3c9d @sikachu Using Object#in? and Object#either? in various places
sikachu authored
2 require 'active_support/core_ext/object/inclusion'
3
733bfa6 @sikachu Remove `#among?` from Active Support
sikachu authored
4 if ARGV.first.in?([nil, "-h", "--help"])
af22c5b @sikachu Add missing -h/--help flag to several rails command [#3909 status:resolv...
sikachu authored
5 Rails::Generators.help 'destroy'
ec55e59 @josevalim Updated commands.
josevalim authored
6 exit
7 end
8
9 name = ARGV.shift
3022ce4 @josevalim No more hacks to ensure generators are executed inside Rails.root.
josevalim authored
10 Rails::Generators.invoke name, ARGV, :behavior => :revoke, :destination_root => Rails.root
Something went wrong with that request. Please try again.