Sha256: 125e8b22e11b4959b91dc789b3a698616f36f4963870a1bd033f4ae9defa288c
Contents?: true
Size: 460 Bytes
Versions: 26
Compression:
Stored size: 460 Bytes
Contents
require 'rake/contrib/sshpublisher' namespace :deploy do desc 'Deploy to the server using rsync' task :rsync do cmd = "rsync #{SITE.rsync_args.join(' ')} " cmd << "#{SITE.output_dir}/ #{SITE.user}@#{SITE.host}:#{SITE.remote_dir}" sh cmd end desc 'Deploy to the server using ssh' task :ssh do Rake::SshDirPublisher.new( "#{SITE.user}@#{SITE.host}", SITE.remote_dir, SITE.output_dir ).upload end end # deploy # EOF
Version data entries
26 entries across 22 versions & 9 rubygems