Sha256: 79bac0235d47db992e55c27cbd166c0b2af4112755a02568424960c888004c9d

Contents?: true

Size: 626 Bytes

Versions: 2

Compression:

Stored size: 626 Bytes

Contents

# 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gemfury-0.13.0 lib/rubygems/commands/fury_command.rb
gemfury-0.13.0.beta1 lib/rubygems/commands/fury_command.rb