Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 41 lines (35 sloc) 1.29 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'

spec = Gem::Specification.new do |s|
  s.name = 'capistrano_rsync_with_remote_cache'
  s.version = '2.4.0'
  s.has_rdoc = true
  s.extra_rdoc_files = %w(README.rdoc)
  s.rdoc_options = %w(--main README.rdoc)
  s.summary = "A deployment strategy for Capistrano 2.0 which combines rsync with a remote cache, allowing fast deployments from SCM servers behind firewalls."
  s.authors = ['Patrick Reagan', 'Mark Cornick']
  s.email = 'patrick.reagan@viget.com'
  s.homepage = 'http://www.viget.com/extend/'
  s.files = %w(README.rdoc Rakefile) + Dir.glob("{lib,test}/**/*")

  s.add_dependency('capistrano', '>=2.1.0')
  s.add_runtime_dependency('rake')
  s.add_runtime_dependency('mocha')
  s.add_runtime_dependency('shoulda')
  s.add_runtime_dependency('jnunemaker-matchy')
end

Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end

desc "Generate gemspec"
task :gemspec do
  File.open("capistrano_rsync_with_remote_cache.gemspec", "w") do |file|
    file.write(spec.to_ruby)
  end
end

Rake::TestTask.new do |t|
  t.libs << 'test'
  t.test_files = FileList["test/**/*_test.rb"]
  t.verbose = true
end

task :default => :test
Something went wrong with that request. Please try again.