GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
Sat Apr 19 15:03:41 -0700 2008
francois (committer)
Mon Apr 21 13:14:25 -0700 2008
commit  1cef7b69dff6ad3bd62e5127a38f2de73ee89456
tree    531c3f4e39de7494ad28813361de00dc968d7e40
parent  e90f935a38bb88f37da5a3ba849531173c107413
piston / samples / common.rb
100644 20 lines (14 sloc) 0.459 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Common code between all sample files.
# Setup the environment.
require "pathname"
require "logger"
 
@root = Pathname.new(File.dirname(__FILE__)).parent
$:.unshift @root + "lib"
 
require "piston"
require "piston/svn"
require "piston/git"
 
PISTON_DEFAULT_LOGGER = Logger.new(STDOUT)
Piston::Repository.logger = Piston::WorkingCopy.logger = PISTON_DEFAULT_LOGGER
def logger; PISTON_DEFAULT_LOGGER; end
 
include Piston::Svn::Client
include Piston::Git::Client