Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gemfury / lib / rubygems / commands / fury_command.rb
Size: Mime:
# frozen_string_literal: true

require 'gemfury'
require 'gemfury/command'

class Gem::Commands::FuryCommand < Gem::Command
  def description
    'Push a private gem to your Gemfury account'
  end

  def arguments
    'GEM       built gem file to push'
  end

  def usage
    "#{program_name} GEM"
  end

  def initialize
    super 'fury', description
    add_option('-a', '--as USERNAME', 'Impersonate another account') do |value, options|
      options[:as] = value
    end
  end

  def execute
    opts = options.dup
    args = opts.delete(:args)
    Gemfury::Command::App.send(:dispatch, 'push', args, opts, {})
  end
end