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:
parent
1ccbf7d76a
commit
0c5d8f813c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue