Browse files

Run tasks only on application servers.

  • Loading branch information...
1 parent d9d7003 commit 9b902b4ea3c0c805193d4c95dcb5184cbf089897 @pr0d1r2 pr0d1r2 committed Nov 14, 2011
Showing with 11 additions and 6 deletions.
  1. +5 −0 CHANGELOG.rdoc
  2. +1 −1 Manifest
  3. +4 −4 lib/capistrano/ext/rvm-bundler.rb
  4. +1 −1 lib/capistrano/ext/version.rb
View
5 CHANGELOG.rdoc
@@ -9,3 +9,8 @@
* add 'cap bundler:install'
* add 'cap bundle:install'
* add 'cap bundle:reset'
+
+== 0.0.2 (November 14, 2011)
+
+* update Manifest file
+* run tasks only on application servers
View
2 Manifest
@@ -1,7 +1,7 @@
CHANGELOG.rdoc
MIT-LICENSE
+Manifest
README
Rakefile
lib/capistrano/ext/rvm-bundler.rb
lib/capistrano/ext/version.rb
-Manifest
View
8 lib/capistrano/ext/rvm-bundler.rb
@@ -4,26 +4,26 @@
namespace :rubygems do
desc "update rubygems in RVM environment"
- task :update do
+ task :update, :roles => :app, :except => { :no_release => true } do
run "rvm '#{rvm_ruby_string}' && gem update --system"
end
end
namespace :bundler do
desc "install bundler gem in RVM environment"
- task :install do
+ task :install, :roles => :app, :except => { :no_release => true } do
run "rvm '#{rvm_ruby_string}' && gem install bundler"
end
end
namespace :bundle do
desc "install bundle in RVM environment"
- task :install do
+ task :install, :roles => :app, :except => { :no_release => true } do
run "cd #{latest_release} && rvm '#{rvm_ruby_string}' && bundle install --gemfile #{latest_release}/Gemfile --quiet --without development test"
end
desc "reset bundle in RVM environment"
- task :reset do
+ task :reset, :roles => :app, :except => { :no_release => true } do
run "cd #{current_path} && rvm '#{rvm_ruby_string}' && rm -f Gemfile.lock && rm -rf `rvm gemdir` && gem install bundler && bundle install --gemfile #{current_path}/Gemfile --without development test"
end
end
View
2 lib/capistrano/ext/version.rb
@@ -4,7 +4,7 @@ module RvmBundler
module Version #:nodoc:
MAJOR = 0
MINOR = 0
- TINY = 1
+ TINY = 2
STRING = [MAJOR, MINOR, TINY].join(".")
end

0 comments on commit 9b902b4

Please sign in to comment.