Sha256: 49e33dbbc485cd516174e3288e17133c9b0876704e545697bc39689c70995540

Contents?: true

Size: 796 Bytes

Versions: 12

Compression:

Stored size: 796 Bytes

Contents

Capistrano.configuration(:must_exist).load do

  desc "remove and ignore log files and tmp from subversion"
  task :svn_remove_log_and_tmp do
    puts "removing log directory contents from svn"
    system "svn remove log/*"
    puts "ignoring log directory"
    system "svn propset svn:ignore '*.log' log/"
    system "svn update log/"
    puts "removing tmp directory from svn"
    system "svn remove tmp/"
    puts "ignoring tmp directory"
    system "svn propset svn:ignore '*' tmp/"
    system "svn update tmp/"
    puts "committing changes"
    system "svn commit -m 'Removed and ignored log files and tmp'"
  end

  desc "Cache svn name and password on the server. Useful for http-based repositories."
  task :svn_cache_credentials do
    run_with_input "svn list #{repository}"
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
deprec-1.2.0 lib/deprec/recipes/svn.rb
deprec-1.2.1 lib/deprec/recipes/svn.rb
deprec-1.2.2 lib/deprec/recipes/svn.rb
deprec-1.2.3 lib/deprec/recipes/svn.rb
deprec-1.3.0 lib/deprec/recipes/svn.rb
deprec-1.3.1 lib/deprec/recipes/svn.rb
deprec-1.4.1 lib/deprec/recipes/svn.rb
deprec-1.4.2 lib/deprec/recipes/svn.rb
deprec-1.5.0 lib/deprec/recipes/svn.rb
deprec-1.5.1 lib/deprec/recipes/svn.rb
deprec-1.7.0 lib/deprec/recipes/svn.rb
deprec-1.6.0 lib/deprec/recipes/svn.rb