class Gem::Commands::ExecCommand

def arguments # :nodoc:

:nodoc:
def arguments # :nodoc:
  "COMMAND  command to run in context of the gem bundle"
end

def description # :nodoc:

:nodoc:
def description # :nodoc:
  <<-EOF.gsub('      ', '')
    Run in context of a bundle
  EOF
end

def execute

def execute
  # Prevent the bundler from getting required unless it is actually being used
  require 'bundler'
  Bundler::CLI.run(:exec, options)
end

def initialize

def initialize
  super('exec', 'Run a command in context of a gem bundle', {:manifest => nil})
  add_option('-m', '--manifest MANIFEST', "Specify the path to the manifest file") do |manifest, options|
    options[:manifest] = manifest
  end
end

def usage

def usage
  "#{program_name} COMMAND"
end