lib/softwear/lib.rb in softwear-lib-1.0.1 vs lib/softwear/lib.rb in softwear-lib-1.1.0
- old
+ new
@@ -73,10 +73,21 @@
on roles(:app), in: :sequence do
execute "~/.rvm/bin/rvm #{ruby} do gem install --no-ri --no-rdoc softwear-lib"
end
end
- before :updating, :update_softwear_lib
+ desc 'Signal the running rails app to restart'
+ task :restart do
+ on roles([:web, :app]), in: :sequence, wait: 5 do
+ execute :mkdir, '-p', "#{release_path}/tmp"
+ execute :touch, release_path.join('tmp/restart.txt')
+ end
+ end
+
+ # This is no longer necessary
+ # before :updating, :update_softwear_lib
+
+ after :publishing, :restart
end
end
end
def self.fix_sort_argument_error_on_rubinius