Class: Gem::Commands::SymlinkCurrentCommand
- Inherits:
-
Gem::Command
- Object
- Gem::Command
- Gem::Commands::SymlinkCurrentCommand
- Defined in:
- lib/rubygems/commands/symlink_current_command.rb
Overview
-- #############################################################################
#
A component of current_gem. #
#
Copyright (C) 2009-2011 University of Cologne, #
Albertus-Magnus-Platz, #
50923 Cologne, Germany #
#
Authors: #
Jens Wille <jens.wille@uni-koeln.de> #
#
current_gem is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published by # the Free Software Foundation; either version 3 of the License, or (at your # option) any later version. #
#
current_gem is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License # for more details. #
#
You should have received a copy of the GNU Affero General Public License # along with current_gem. If not, see <www.gnu.org/licenses/>. #
#
############################################################################# ++
Instance Method Summary (collapse)
- - (Object) execute
-
- (SymlinkCurrentCommand) initialize
constructor
A new instance of SymlinkCurrentCommand.
Constructor Details
- (SymlinkCurrentCommand) initialize
A new instance of SymlinkCurrentCommand
31 32 33 |
# File 'lib/rubygems/commands/symlink_current_command.rb', line 31 def initialize super 'symlink_current', "Create symlinks to all gems' current versions" end |
Instance Method Details
- (Object) execute
35 36 37 |
# File 'lib/rubygems/commands/symlink_current_command.rb', line 35 def execute CurrentGem.update_all end |