Sha256: 3df793d705bd3a90036b3b065a17019cce1f89a43df7b5784da8563c1bcddead

Contents?: true

Size: 595 Bytes

Versions: 45

Compression:

Stored size: 595 Bytes

Contents

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

45 entries across 45 versions & 1 rubygems

Version Path
gemfury-0.4.8 lib/rubygems/commands/fury_command.rb
gemfury-0.4.7 lib/rubygems/commands/fury_command.rb
gemfury-0.4.6 lib/rubygems/commands/fury_command.rb
gemfury-0.4.5 lib/rubygems/commands/fury_command.rb
gemfury-0.4.4 lib/rubygems/commands/fury_command.rb