aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/process/inspector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/commands/process/inspector.rb')
-rw-r--r--railties/lib/commands/process/inspector.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/commands/process/inspector.rb b/railties/lib/commands/process/inspector.rb
index 79e1cf9a61..8a6437e715 100644
--- a/railties/lib/commands/process/inspector.rb
+++ b/railties/lib/commands/process/inspector.rb
@@ -1,6 +1,6 @@
require 'optparse'
-if RUBY_PLATFORM =~ /mswin32/ then abort("Inspector is only for Unix") end
+if RUBY_PLATFORM =~ /(:?mswin|mingw)/ then abort("Inspector is only for Unix") end
OPTIONS = {
:pid_path => File.expand_path(RAILS_ROOT + '/tmp/pids'),
@@ -65,4 +65,4 @@ ARGV.options do |opts|
opts.parse!
end
-Inspector.inspect(OPTIONS[:pid_path], OPTIONS[:pattern]) \ No newline at end of file
+Inspector.inspect(OPTIONS[:pid_path], OPTIONS[:pattern])