aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/new
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-08-22 21:26:06 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-08-22 22:39:03 +0300
commitcffb9bc1f64f314e794833b17d68c43e88f47741 (patch)
treee996af559dded47e06bf7033ff884a12c4d39532 /railties/lib/rails/commands/new
parent9136bb77a73a9374078f850af056225172f1f211 (diff)
downloadrails-cffb9bc1f64f314e794833b17d68c43e88f47741.tar.gz
rails-cffb9bc1f64f314e794833b17d68c43e88f47741.tar.bz2
rails-cffb9bc1f64f314e794833b17d68c43e88f47741.zip
Use `say`/`error` instead of `puts`/`$stderr.puts`
Follow up 44007c07098a3c633180881cae9285da4622e63f
Diffstat (limited to 'railties/lib/rails/commands/new')
-rw-r--r--railties/lib/rails/commands/new/new_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/new/new_command.rb b/railties/lib/rails/commands/new/new_command.rb
index d73d64d899..a4f2081510 100644
--- a/railties/lib/rails/commands/new/new_command.rb
+++ b/railties/lib/rails/commands/new/new_command.rb
@@ -10,8 +10,8 @@ module Rails
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."
+ 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