method
new
v1_9_3_392 -
Show latest stable
- Class:
Gem::Commands::PristineCommand
new()public
No documentation available.
# File lib/rubygems/commands/pristine_command.rb, line 10
def initialize
super 'pristine',
'Restores installed gems to pristine condition from files located in the gem cache',
:version => Gem::Requirement.default, :extensions => true,
:all => false
add_option('--all',
'Restore all installed gems to pristine',
'condition') do |value, options|
options[:all] = value
end
add_option('--[no-]extensions',
'Restore gems with extensions') do |value, options|
options[:extensions] = value
end
add_version_option('restore to', 'pristine condition')
end