class Bundler::GemHelper

:reek: InstanceVariableAssumption

Constants

NEXUS_CMD

Protected Instance Methods

rubygem_push(path) click to toggle source

:reek: DuplicateMethodCall { max_calls: 2 }

# File lib/vendor/rubygem_push.rb, line 16
    def rubygem_push(path)
      thread = Thread.new { @result = system(*NEXUS_CMD, path) }
      thread.join

      # if thread terminated and the command exited without errors
      if !thread.status && @result
        Bundler.ui.confirm "Pushed #{name} #{version} to #{gem_push_host}"
      else
        Bundler.ui.error <<~MSG
          Something wrong happened. Run this command directly for more detailed output:
          #{NEXUS_CMD.join(' ')} #{path}
        MSG
      end
    end