Permalink
Browse files

use Bundler instead of RVM gemset

  • Loading branch information...
Tomohiro committed Jan 11, 2012
1 parent 4f2f1bd commit 8d89754fe2648fd67220144f1d913ccba0f387bf
Showing with 8 additions and 29 deletions.
  1. +8 −10 README.markdown
  2. +0 −19 Rakefile
View
@@ -24,17 +24,12 @@ Installation
### Create development environment
-1. Clone git repo
+1. Clone Git repository
$ git clone git@github.com:hackers/redmine_irc_gateway.git
$ cd redmine_irc_gateway
-2. Installing Ruby and libraries
-
- RVM
-
- $ rvm install 1.9.2
- $ rake rig:development:setup
+2. Installing RubyGems
Bundler
@@ -76,16 +71,19 @@ If you want to use debug mode, add the `--debug` option. like this.
#### Start
- $ bin/rig start
+ $ bundle exec ./bin/rig start
#### Stop
- $ bin/rig stop
+ $ bundle exec ./bin/rig stop
#### Restart
- $ bin/rig restart
+ $ bundle exec ./bin/rig restart
+
+#### Kill
+ $ bundle exec ./bin/rig kill
### Cleaning environment
View
@@ -3,29 +3,10 @@ require 'rake/clean'
CLEAN.include('config/test.yml', 'tmp', 'log', '/tmp/rig_issues.*')
namespace :rig do
- namespace :development do
- desc 'Setup development environments'
- task :setup do
- sh 'rvm use 1.9.2'
- sh 'rvm gemset create rig'
- sh 'rvm gemset use rig'
- sh 'gem install bundler'
- sh 'gem list'
- sh 'bundle'
- sh 'bundle show'
- end
- end
-
namespace :test do
require 'rake/testtask'
Rake::TestTask.new 'all'
end
end
task :default => 'rig:test:all'
-
-begin
- require 'bundler/gem_tasks'
-rescue LoadError
- abort 'NOTE: Run `$ rake rig:development:setup`'
-end

0 comments on commit 8d89754

Please sign in to comment.