Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 278d62ddb7
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 36 lines (32 sloc) 1.102 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
require 'lib/persistence/version'

desc 'build a gem release and push it to dev'
task :release do
  sh 'gem build persistence.gemspec'
  sh "scp persistence-#{Persistence::VERSION}.gem dev.playlouder.com:/var/www/gems.playlouder.com/pending"
  sh "ssh dev.playlouder.com sudo include_gems.sh /var/www/gems.playlouder.com/pending"
end

require 'rake/testtask'
Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/*_test.rb']
  t.verbose = true
  t.options = '--runner=specdox'
end

begin
  require 'yard'
  OTHER_PATHS = 'QUICK-START.md README.md'
  YARD::Rake::YardocTask.new do |t|
    t.files = ['lib/**/*.rb', '-', 'QUICK-START.md', 'README.md']
  end
rescue LoadError
  $stderr.puts('yard not installed, no yard task defined')
end

desc 'deploy the docs to public.playlouder.com'
task :deploy_docs => :yard do
  fname = "persistence-#{Persistence::VERSION}.tar.gz"
  host = 'public.playlouder.com'
  www_dir = "/var/www/public.playlouder.com/doc/persistence/"
  `tar -czf #{fname} doc`
  `scp #{fname} #{host}:/tmp/.`
  `ssh #{host} tar xf /tmp/#{fname} -C #{www_dir}`
end
Something went wrong with that request. Please try again.