Skip to content

tachyons/svn-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A lightweight Ruby wrapper for the Linux SVN command line interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%