1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Using the instance variable for argv.

Instead of using the global constant ARGV, we're changing to using the
instance variable because it is more testable.
This commit is contained in:
wangjohn 2013-07-09 08:21:54 -04:00
parent 1ccbf7d76a
commit 0c5d8f813c

View file

@ -100,7 +100,7 @@ EOT
end
def version
ARGV.unshift '--version'
argv.unshift '--version'
require_command!("application")
end
@ -117,7 +117,7 @@ EOT
end
def shift_argv!
ARGV.shift if ARGV.first && ARGV.first[0] != '-'
argv.shift if argv.first && argv.first[0] != '-'
end
def require_command!(command)