method
execute
Ruby latest stable (v2_5_5)
-
0 notes -
Class: GenerateIndexCommand
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
execute()
public
Hide source
# File lib/rubygems/commands/generate_index_command.rb, line 65 def execute # This is always true because it's the only way now. options[:build_modern] = true if not File.exist?(options[:directory]) or not File.directory?(options[:directory]) then alert_error "unknown directory name #{options[:directory]}." terminate_interaction 1 else indexer = Gem::Indexer.new options.delete(:directory), options if options[:update] then indexer.update_index else indexer.generate_index end end end