Sha256: 47cf5a63d9c99110ea55fa381c56f3199480132a1da2b726cd5339d53d57ba9d
Contents?: true
Size: 547 Bytes
Versions: 6
Compression:
Stored size: 547 Bytes
Contents
module InstallGemLocal module PushGem def push_gem till_install puts '' puts I18n.t('action.push_gem.puts_line').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 I18n.t(: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
6 entries across 6 versions & 1 rubygems