pluginã®ã¤ã³ã¹ãã¼ã«ã¨ã
Railsã§ã¯è¿½å æ©è½ããåºæ¬æ©è½ã®æ¡å¼µãªã©ã plugin ã¨ããæ¹æ³ã§è¡ãã¾ããpluginã¯æ§ã ãªã¨ããã§å ¬éãã¦ãã¦ãããã¸ã§ã¯ããã¨ã«ã¤ã³ã¹ãã¼ã«ãã¦ä½¿ç¨ãã¾ããpluginã®ç®¡çã«ã¯åºæ¬ãscript/plugin ã使ãã¾ãããã®ã³ãã³ãã§SVNã使ã£ã¦ãããããå¿ è¦ãªãã©ã°ã¤ã³ãæ¢ãããããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ããããã¾ãã
ç°¡åãªä½¿ãæ¹
å©ç¨å¯è½ãªãã©ã°ã¤ã³ã®ä¸è¦§ã表示ã
$ ruby script/plugin list account_location http://dev.rubyonrails.com/svn/rails/plugins/account_location/ acts_as_list http://dev.rubyonrails.com/svn/rails/plugins/acts_as_list/ acts_as_nested_set http://dev.rubyonrails.com/svn/rails/plugins/acts_as_nested_set/ ã»ã»ã»
ä¸è¦§ã®å³ã«ããããã«ãããã©ã«ãã§ã¯ http://dev.rubyonrails.com/svn/rails/plugins/ ã«å ¬éããã¦ãããã©ã°ã¤ã³ã®ã¿ã対象ã¨ãªãã¾ãã
ãã©ã°ã¤ã³ã®ã¤ã³ã¹ãã¼ã«ã¯ãinstall ã使ç¨ãã¾ããscaffolding ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ãã
$ ruby script/plugin install scaffolding + ./MIT-LICENSE + ./README + ./Rakefile + ./init.rb + ./lib/scaffolding.rb ã»ã»ã»
ãã©ã°ã¤ã³ã®ãªãã¸ããªã¯ãã£ã±ããã£ã¦ãdiscover -l ã§ãã®ä¸è¦§ã確èªã§ãã¾ãã
$ ruby script/plugin discover -l http://www.agilewebdevelopment.com/plugins/ svn://rubyforge.org/var/svn/expressica/plugins/ http://soen.ca/svn/projects/rails/plugins/ http://technoweenie.stikipad.com/plugins/ ã»ã»ã»
ããã©ã«ãã«ç¡ããã©ã°ã¤ã³ã¯ããã®ãªãã¸ããªã追å ããå¿ è¦ãããã¾ãï¼ãããã¯ã¤ã³ã¹ãã¼ã«æã«ãã«ãã¹ã§æå®ããï¼ã Railsã«ããã¢ã¸ã£ã¤ã«ã rail2.0çããã®ï¼ã§åºã¦æ¥ã pagination ãã©ã°ã¤ã³ã¯ãããã©ã«ãã«ã¯ãªããhttp://tools.assembla.com/svn/breakout/breakout/vendor/plugins/ ãªãã¸ããªã«ããã¾ããããã追å ãã¾ãã
$ ruby script/plugin source http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/
sources ã§ç¾å¨ã®ãªãã¸ããªãªã¹ãã確èªã§ãã¾ããããã©ã«ãã® dev.rubyonrails.com ã¨äºã¤ããã¾ãã
$ ruby script/plugin sources http://dev.rubyonrails.com/svn/rails/plugins/ http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/
ã¡ãªã¿ã«ãdiscover ãå¼æ°ç¡ãã§å®è¡ããã¨ãå ¨ã¦ã®ãªãã¸ããªã«å¯¾ãã¦è¿½å ãããã©ãããY/Nã§çãã¦ãYãªãã°è¿½å ããã¾ãããã¾ãå¤ã追å ããããã¨ãã©ã°ã¤ã³ã®æ¤ç´¢ã«æéããããã®ã§ãå¿ è¦ãªãã®ã ãã«ããã®ããããã¨æãã¾ãã
ã¾ããééãã¦ç»é²ãã¦ãã¾ã£ãå ´å㯠unsource ãªãã¸ããªURL ã§ããªãã¸ããªããªã¹ãããé¤å¤ãããã¨ãåºæ¥ã¾ãã詳ããã¯ã script/plugin -h ã§ãã«ããè¦ãã¾ãã
ãã¦ãtools.assembla.com ã追å ããã®ã§ãããä¸åº¦ list ã§ç¢ºèªãã¦ã¿ã¾ãã
$ ruby script/plugin list ã»ã»ã» classic_pagination http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/classic_pagination/ ã»ã»ã» will_paginate http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/will_paginate/
å ã»ã©ããå¢ãã¦ããã®ãåããã¾ãããã®ä¸ã«ãããclassic_pagination 㨠will_paginate ãã¤ã³ã¹ãã¼ã«ãã¾ãã
$ ruby script/plugin install classic_pagination + ./CHANGELOG + ./README + ./Rakefile + ./init.rb + ./install.rb + ./lib/pagination.rb ã»ã»ã» $ ruby script/plugin install will_paginate + ./LICENSE + ./README + ./Rakefile + ./init.rb + ./lib/will_paginate/collection.rb ã»ã»ã»
ã¨ããããããã§ãscaffold ã使ãæºåãã§ãã¾ããã