rconftool 0.1
Sponsored Links
rconftool 0.1 Ranking & Summary
File size:
0.009 MB
Platform:
Any Platform
License:
MIT/X Consortium License
Price:
Downloads:
1655
Date added:
2005-04-12
Publisher:
Brian Candler
rconftool 0.1 description
rconftool is a reimplementation of Sam Varshavchiks sysconftool in Ruby. Its purpose is to keep configuration files "fresh" when upgrading an application from one version to another, ensuring that all necessary settings are present and obsolete ones removed.
To use it, application writers need to distribute their config files marked up with some simple metadata in comments, and arrange for the make install or make install-configure target to invoke rconftool.
rconftool can be called as a library function or from the command line. It can also install groups of files recursively from one directory tree into another.
rconftool is distributed under the MIT licence.
Installation
You can just use rconftool.rb from the current directory, or copy it anywhere into Rubys library search path. The following command will do this for you:
# ruby install.rb
Usage
(1) As a command-line tool
# ./rconftool.rb foo.dist
Installs foo.dist to foo (option --strip-suffix .dist is the default)
# ./rconftool.rb --strip-suffix .orig --add-suffix .txt *.orig
Installs files foo.orig and bar.orig as foo.txt and bar.txt
# ./rconftool.rb --recursive --targetdir /etc/foo .
Installs all files in the current directory and its subdirectories into /etc/foo recursively. (Suffix .dist is still stripped off by default, unless you specify --strip-suffix ""). /etc/foo itself must exist, but subdirectories are created if necessary.
(2) As a library
require rconftool
# install single files
Rconftool::install(foo.dist, foo)
Rconftool::install(foo.dist, nil, nil, :strip_regexp=>/.dist$/)
Rconftool::install(foo.orig, foo.txt)
Rconftool::install(bar.orig, nil, nil, :strip_regexp=>/.orig$/,
:add_suffix=>.txt)
# using the command-line interface
argv = [--recursive,--targetdir,/etc/foo,.]
rct = Rconftool::Processor.new(argv)
rct.run(argv)
To use it, application writers need to distribute their config files marked up with some simple metadata in comments, and arrange for the make install or make install-configure target to invoke rconftool.
rconftool can be called as a library function or from the command line. It can also install groups of files recursively from one directory tree into another.
rconftool is distributed under the MIT licence.
Installation
You can just use rconftool.rb from the current directory, or copy it anywhere into Rubys library search path. The following command will do this for you:
# ruby install.rb
Usage
(1) As a command-line tool
# ./rconftool.rb foo.dist
Installs foo.dist to foo (option --strip-suffix .dist is the default)
# ./rconftool.rb --strip-suffix .orig --add-suffix .txt *.orig
Installs files foo.orig and bar.orig as foo.txt and bar.txt
# ./rconftool.rb --recursive --targetdir /etc/foo .
Installs all files in the current directory and its subdirectories into /etc/foo recursively. (Suffix .dist is still stripped off by default, unless you specify --strip-suffix ""). /etc/foo itself must exist, but subdirectories are created if necessary.
(2) As a library
require rconftool
# install single files
Rconftool::install(foo.dist, foo)
Rconftool::install(foo.dist, nil, nil, :strip_regexp=>/.dist$/)
Rconftool::install(foo.orig, foo.txt)
Rconftool::install(bar.orig, nil, nil, :strip_regexp=>/.orig$/,
:add_suffix=>.txt)
# using the command-line interface
argv = [--recursive,--targetdir,/etc/foo,.]
rct = Rconftool::Processor.new(argv)
rct.run(argv)
rconftool 0.1 Screenshot
rconftool 0.1 Keywords
Bookmark rconftool 0.1
rconftool 0.1 Copyright
WareSeeker periodically updates pricing and software information of rconftool 0.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of rconftool 0.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Ruport (Ruby Reports) is a powerful report generation engine. Free Download
RFuse is a Ruby interface to the FUSE library. Free Download
RMovie is a Ruby extension for accessing and retrieving information from video and audio files. Free Download
newfile is a source file generator using a CPP-like preprocessor. Free Download
jConfig project is an extremely helpful utility, arming the developer with a simple API for the management of properties. Free Download
Ruby/Informix is a Ruby extension for connecting to IBM Informix Dynamic Server. Free Download
RubyFilter provides a Ruby email filtering program and library. Free Download
NeverForms is a collection of functions that helps with HTML form manipulation. Free Download
Latest Software
Popular Software
Favourite Software