mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
cffb9bc1f6
Follow up 44007c0709
19 lines
456 B
Ruby
19 lines
456 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Rails
|
|
module Command
|
|
class NewCommand < Base # :nodoc:
|
|
no_commands do
|
|
def help
|
|
Rails::Command.invoke :application, [ "--help" ]
|
|
end
|
|
end
|
|
|
|
def perform(*)
|
|
say "Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.\n"
|
|
say "Type 'rails' for help."
|
|
exit 1
|
|
end
|
|
end
|
|
end
|
|
end
|