Sha256: 5d81cf563f79af9384533fb656ad5406b5f7935bec483a01bdba2179aad4b0d5

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 Bytes

Contents

class Gem::Commands::ExecCommand < Gem::Command
  def initialize
    super("exec", "Install a gem and execute")
  end

  def execute
    a = options[:args].dup
    g = a.shift
    system("gem", "install", g)
    system(g, *a)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gem-exec-0.1.0 lib/rubygems/commands/exec_command.rb