Flowdock
method

execute

Importance_0
v2_1_10 - Show latest stable - 0 notes - Class: CleanupCommand
execute() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/cleanup_command.rb, line 48
  def execute
    say "Cleaning up installed gems..."

    if options[:args].empty? then
      done     = false
      last_set = nil

      until done do
        clean_gems

        this_set = @gems_to_cleanup.map { |spec| spec.full_name }.sort

        done = this_set.empty? || last_set == this_set

        last_set = this_set
      end
    else
      clean_gems
    end

    say "Clean Up Complete"

    if Gem.configuration.really_verbose then
      skipped = @default_gems.map { |spec| spec.full_name }

      say "Skipped default gems: #{skipped.join ', '}"
    end
  end
Register or log in to add new notes.