Sha256: 75d0eeb4bdb80c5bacf615dd06b008fb2cf70dcd4db5cd6d9b50848258c1a444
Contents?: true
Size: 535 Bytes
Versions: 18
Compression:
Stored size: 535 Bytes
Contents
namespace :deploy do task :site => %w(site:upload rdoc:upload) desc 'Deploy on code.macournoyer.com' task :alpha => %w(gem:upload deploy:site) desc 'Deploy on rubyforge' task :public => %w(gem:upload_rubyforge deploy:site) end desc 'Deploy on all servers' task :deploy => %w(deploy:alpha deploy:public) def upload(file, to, options={}) sh %{ssh macournoyer@macournoyer.com "rm -rf code.macournoyer.com/#{to}"} if options[:replace] sh %{scp -rq #{file} macournoyer@macournoyer.com:code.macournoyer.com/#{to}} end
Version data entries
18 entries across 18 versions & 2 rubygems