Class: BundleUpdateInteractive::CLI
- Inherits:
-
Thor
- Object
- Thor
- BundleUpdateInteractive::CLI
- Extended by:
- ThorExt::Start
- Defined in:
- lib/bundle_update_interactive/cli.rb,
lib/bundle_update_interactive/cli/row.rb,
lib/bundle_update_interactive/cli/table.rb,
lib/bundle_update_interactive/cli/thor_ext.rb,
lib/bundle_update_interactive/cli/multi_select.rb
Defined Under Namespace
Modules: ThorExt Classes: MultiSelect, Row, Table
Instance Method Summary collapse
-
#ui ⇒ Object
rubocop:disable Metrics/AbcSize.
- #version ⇒ Object
Methods included from ThorExt::Start
Instance Method Details
#ui ⇒ Object
rubocop:disable Metrics/AbcSize
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/bundle_update_interactive/cli.rb', line 23 def ui # rubocop:disable Metrics/AbcSize report = generate_report say("No gems to update.") && return if report.updateable_gems.empty? say say legend say selected_gems = MultiSelect.prompt_for_gems_to_update(report.updateable_gems) say("No gems to update.") && return if selected_gems.empty? say "\nUpdating the following gems." say say Table.new(selected_gems).render say BundlerCommands.update_gems_conservatively(*selected_gems.keys) end |
#version ⇒ Object
18 19 20 |
# File 'lib/bundle_update_interactive/cli.rb', line 18 def version say "bundle_update_interactive/#{VERSION} #{RUBY_DESCRIPTION}" end |