# File lib/rubygems/commands/unpack_command.rb, line 31
      def execute
        gemname = get_one_gem_name
        path = get_path(gemname, options[:version])
        if path
          require 'fileutils'
          target_dir = File.basename(path).sub(/\.gem$/, '')
          FileUtils.mkdir_p target_dir
          Installer.new(path).unpack(File.expand_path(target_dir))
          say "Unpacked gem: '#{target_dir}'"
        else
          alert_error "Gem '#{gemname}' not installed."
        end
      end