method
new
v2_2_9 -
Show latest stable
- Class:
Gem::Commands::UnpackCommand
new()public
No documentation available.
# File lib/rubygems/commands/unpack_command.rb, line 10
def initialize
require 'fileutils'
super 'unpack', 'Unpack an installed gem to the current directory',
:version => Gem::Requirement.default,
:target => Dir.pwd
add_option('--target=DIR',
'target directory for unpacking') do |value, options|
options[:target] = value
end
add_option('--spec', 'unpack the gem specification') do |value, options|
options[:spec] = true
end
add_version_option
end