Skip to content

Commit

Permalink
Do not show post install message on rails new
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Dec 14, 2018
1 parent f907b41 commit 08e7b36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions railties/lib/rails/generators/app_base.rb
Expand Up @@ -364,7 +364,7 @@ def cable_gemfile_entry
gems
end

def bundle_command(command)
def bundle_command(command, env = {})
say_status :run, "bundle #{command}"

# We are going to shell out rather than invoking Bundler::CLI.new(command)
Expand All @@ -381,9 +381,9 @@ def bundle_command(command)
Bundler.with_clean_env do
full_command = %Q["#{Gem.ruby}" "#{_bundle_command}" #{command}]
if options[:quiet]
system(full_command, out: File::NULL)
system(env, full_command, out: File::NULL)
else
system(full_command)
system(env, full_command)
end
end
end
Expand Down Expand Up @@ -417,7 +417,7 @@ def os_supports_listen_out_of_the_box?
end

def run_bundle
bundle_command("install") if bundle_install?
bundle_command("install", "BUNDLE_IGNORE_MESSAGES" => "1") if bundle_install?
end

def run_webpack
Expand Down
2 changes: 1 addition & 1 deletion railties/test/generators/app_generator_test.rb
Expand Up @@ -1059,7 +1059,7 @@ def assert_no_listen_related_configuration
end

def assert_bundler_command_called(target_command)
command_check = -> command do
command_check = -> (command, env = {}) do
@command_called ||= 0

case command
Expand Down

0 comments on commit 08e7b36

Please sign in to comment.