Skip to content
A lightweight Ruby wrapper for the Linux SVN command line interface
Ruby
Branch: master
Clone or download
Pull request Compare This branch is 15 commits ahead of spatchcock:master.
Latest commit ba04ee6 Oct 8, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.ruby-version made config file Oct 8, 2015
LICENSE.txt add files Jan 10, 2012
README.md remove bullets from readme Jan 11, 2012
config.yml added config file Oct 8, 2015
sample.rb added config file Oct 8, 2015
sample.xml additions Oct 6, 2015

README.md

SVN-ruby

A lightweight wrapper written in Ruby for the Linux command line SVN interface. It allows basic interaction with an SVN repository, including adding, renaming, deleting, committing, diffing and checking the status of files.

Licensed under the MIT license (See LICENSE.txt for details)

Authors: Andrew Berkeley

Copyright: Copyright (c) Andrew Berkeley

Homepage: https://github.com/spatchcock/svn-ruby

Installation

Just include the code somewhere appropriate

Requirements

  • UNIX system
  • SVN installation
  • Ruby!

Usage

SVN authentication credentials must be initialized as follows:

SVN.username = "a_username"
SVN.password = "a_password"

File management can then be performed:

File.open("new_file.txt", 'w') { |file| file.write "This is a new file" }

SVN.status                               => [["?", "new_file.txt"]]

SVN.add "new_file.txt"                   => "A         new_file.txt\n"

SVN.commit "adding new file"             => "12345 // new revision number
You can’t perform that action at this time.