diff options
author | Alex Johnson <notalexjohnson@gmail.com> | 2013-11-07 03:45:17 +0530 |
---|---|---|
committer | Alex Johnson <notalexjohnson@gmail.com> | 2013-11-07 03:50:23 +0530 |
commit | 1410d46b30526f3e4fd1148fe5fb19f83550aab2 (patch) | |
tree | 399ef51664b163d1d35f6a1706903a2d418a1b08 /railties/lib | |
parent | 919fafa54b7cc9c870b0138c4ec4cfd42edbace1 (diff) | |
download | rails-1410d46b30526f3e4fd1148fe5fb19f83550aab2.tar.gz rails-1410d46b30526f3e4fd1148fe5fb19f83550aab2.tar.bz2 rails-1410d46b30526f3e4fd1148fe5fb19f83550aab2.zip |
Move interrupt information to print_boot_information method
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/commands/server.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb index 4b4cf74623..1e90c57fb4 100644 --- a/railties/lib/rails/commands/server.rb +++ b/railties/lib/rails/commands/server.rb @@ -62,7 +62,7 @@ module Rails def start print_boot_information - trap_interrupt_and_print_interrupt_information + trap(:INT) { exit } create_tmp_directories log_to_stdout if options[:log_stdout] @@ -116,10 +116,7 @@ module Rails if options[:Host].to_s.match(/0\.0\.0\.0/) puts "=> Notice: server is listening on all interfaces (#{ options[:Host] }). Consider using 127.0.0.1 (--binding option)" end - end - def trap_interrupt_and_print_interrupt_information - trap(:INT) { exit } puts "=> Ctrl-C to shutdown server" unless options[:daemonize] end |