Sha256: 2f2c25d068eecc347a208b0f4fb35fa7ec02ff90d1be99ddc49e708f7b944312

Contents?: true

Size: 550 Bytes

Versions: 6

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

module InstallGemLocal
  module InstallGem
    def install_gem
      puts ''
      puts 'Install Gem'.green
      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

6 entries across 6 versions & 1 rubygems

Version Path
install_gem_local-0.1.19 lib/install_gem_local/action/install_gem.rb
install_gem_local-0.1.18 lib/install_gem_local/action/install_gem.rb
install_gem_local-0.1.11 lib/install_gem_local/action/install_gem.rb
install_gem_local-0.1.10 lib/install_gem_local/action/install_gem.rb
install_gem_local-0.1.9 lib/install_gem_local/action/install_gem.rb
install_gem_local-0.1.8 lib/install_gem_local/action/install_gem.rb