Sha256: 86735a7875d982d09e3b8533f2336ad71b2ec5134819801815268935383b7bac

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

module InstallGemLocal
  module PushGem
    def push_gem
      build_gem
      puts ''
      puts 'Push Gem'.blue
      files_exists = file_names
      if files_exists.count > 1
        push_gem_from_path(multiple_version_selection)
      elsif files_exists.count == 1
        push_gem_from_path(files_exists.first)
      else
        ap 'Gem not exist'
      end
    end

    def push_gem_from_path(file_name)
      return if file_name == 'exit'

      tty_command.run("gem push #{file_name}")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
install_gem_local-0.1.9 lib/install_gem_local/action/push_gem.rb
install_gem_local-0.1.8 lib/install_gem_local/action/push_gem.rb