Class: Gem::Commands::SymlinkCurrentCommand

Inherits:
Gem::Command
  • Object
show all
Defined in:
lib/rubygems/commands/symlink_current_command.rb

Overview

#

A component of current_gem. #

#

Copyright © 2009-2012 University of Cologne, #

Albertus-Magnus-Platz,                              #
50923 Cologne, Germany                              #
                                                    #

Copyright © 2013 Jens Wille #

#

Authors: #

Jens Wille <jens.wille@gmail.com>                                       #
                                                                        #

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

Constructor Details

#initializeSymlinkCurrentCommand

Returns a new instance of SymlinkCurrentCommand.



33
34
35
# File 'lib/rubygems/commands/symlink_current_command.rb', line 33

def initialize
  super 'symlink_current', "Create symlinks to all gems' current versions"
end

Instance Method Details

#executeObject



37
38
39
# File 'lib/rubygems/commands/symlink_current_command.rb', line 37

def execute
  CurrentGem.update_all
end