exe/bundle-only in bundle-only-0.3.0 vs exe/bundle-only in bundle-only-0.4.0
- old
+ new
@@ -1,8 +1,14 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
+# Exit cleanly from an early interrupt
+Signal.trap('INT') do
+ Bundler.ui.debug("\n#{caller.join("\n")}") if defined?(Bundler)
+ exit 1
+end
+
require 'bundle-only/messages'
install_only = ARGV.to_a.map(&:to_sym)
if install_only.empty?
@@ -31,11 +37,8 @@
Bundler.ui = Bundler::UI::Shell.new
installer = Bundler::Installer.install(Bundler.root, definition, system: true)
-BundleOnly::Messages.print_installation_complete(definition)
-BundleOnly::Messages.confirm_without_groups
-
-installer.post_install_messages.each do |name, message|
- BundleOnly::Messages.print_post_install_message(name, message)
-end
+BundleOnly::Messages::Install.output_installation_complete_message(definition)
+BundleOnly::Messages::Common.output_without_groups_message(:install)
+BundleOnly::Messages::Common.output_post_install_messages installer.post_install_messages