From: Sho Hashimoto Date: Sun, 4 Jul 2010 11:09:52 +0000 (+0900) Subject: fix func name X-Git-Url: http://shokai.org/projects/git/?a=commitdiff_plain;h=eed265fcdd971be3cf9f0e5b96fc345cb566d025;p=shinagawaseaside%2F.git fix func name --- diff --git a/README.rdoc b/README.rdoc index 243e435..7690484 100644 --- a/README.rdoc +++ b/README.rdoc @@ -15,7 +15,7 @@ add rake tasks they start/stop tokyo tyrant server { :name => 'videos',:port => 20011}, { :name => 'comments', :port => 20012} ] - ShinagawaSeaside::set(ttdb, :basedir => File.dirname(__FILE__)+'/ttdb') + ShinagawaSeaside::set_tasks(ttdb, :basedir => File.dirname(__FILE__)+'/ttdb') == REQUIREMENTS: diff --git a/lib/shinagawaseaside.rb b/lib/shinagawaseaside.rb index e2e6827..1855baf 100644 --- a/lib/shinagawaseaside.rb +++ b/lib/shinagawaseaside.rb @@ -4,7 +4,7 @@ $:.unshift(File.dirname(__FILE__)) unless module ShinagawaSeaside VERSION = '0.0.1' - def ShinagawaSeaside::set(ttdb, opts) + def ShinagawaSeaside::set_tasks(ttdb, opts) p ttdb p opts diff --git a/samples/Rakefile b/samples/Rakefile index cd27e6f..e1a9407 100644 --- a/samples/Rakefile +++ b/samples/Rakefile @@ -5,4 +5,4 @@ ttdb = [ { :name => 'users', :port => 20010}, { :name => 'videos',:port => 20011}, { :name => 'comments', :port => 20012} ] -ShinagawaSeaside::set(ttdb, :basedir => File.dirname(__FILE__)+'/ttdb') +ShinagawaSeaside::set_tasks(ttdb, :basedir => File.dirname(__FILE__)+'/ttdb')