mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Do not show status when calling gsub_file or append_file.
This commit is contained in:
parent
e0a4d8be93
commit
cd05ed6711
1 changed files with 3 additions and 3 deletions
|
@ -81,12 +81,12 @@ module Rails
|
||||||
|
|
||||||
in_root do
|
in_root do
|
||||||
if options[:env].nil?
|
if options[:env].nil?
|
||||||
gsub_file 'config/environment.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
|
gsub_file 'config/environment.rb', /(#{Regexp.escape(sentinel)})/mi, false do |match|
|
||||||
"#{match}\n " << data
|
"#{match}\n " << data
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Array.wrap(options[:env]).each do|env|
|
Array.wrap(options[:env]).each do|env|
|
||||||
append_file "config/environments/#{env}.rb", "\n#{data}"
|
append_file "config/environments/#{env}.rb", "\n#{data}", false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -252,7 +252,7 @@ module Rails
|
||||||
sentinel = 'ActionController::Routing::Routes.draw do |map|'
|
sentinel = 'ActionController::Routing::Routes.draw do |map|'
|
||||||
|
|
||||||
in_root do
|
in_root do
|
||||||
gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
|
gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi, false do |match|
|
||||||
"#{match}\n #{routing_code}\n"
|
"#{match}\n #{routing_code}\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue