Sha256: 5b2a7a53077707f2b9eb9c711f815caec7421cd9d26d190181d333efc2dae4cb
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 Bytes
Contents
# frozen_string_literal: true module InstallGemLocal module RemoveGem def remove_gem puts '' puts 'Remove Gem'.red file_exists = file_names if file_exists.count > 1 remove_file_from_path(multiple_version_selection(include_all: true, title_interpol: 'TO Remove')) elsif file_exists.count == 1 remove_file_from_path(file_exists.first) else ap 'Gem not exist' end end def remove_file_from_path(file_name) return if file_name == 'exit' if file_name == 'all' tty_command.run('rm *.gem') else tty_command.run("rm #{file_name}") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems