Sha256: a772fb1efabcb54004a375e6cd6bbfa8696b48649b40eee7160a14ca58c5d11e
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true module InstallGemLocal module InstallGem def install_gem puts '-----------------------------' puts '' files_exists = file_names if files_exists.count > 1 install_gem_from_path(multiple_version_selection) elsif files_exists.count == 1 install_gem_from_path(files_exists.first) else ap 'Gem not exist' end end def install_gem_from_path(file_name) return if file_name == 'exit' tty_command.run("gem install #{file_name}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
install_gem_local-0.1.7 | lib/install_gem_local/action/install_gem.rb |