mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
83776676e5
They're just barren on the site and confure more than guide, instead rely on the built in --help to guide users.
15 lines
390 B
Ruby
15 lines
390 B
Ruby
module Rails
|
|
module Command
|
|
class NewCommand < Base # :nodoc:
|
|
def help
|
|
Rails::Command.invoke :application, [ "--help" ]
|
|
end
|
|
|
|
def perform(*)
|
|
puts "Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.\n"
|
|
puts "Type 'rails' for help."
|
|
exit 1
|
|
end
|
|
end
|
|
end
|
|
end
|