public
Description: Pack a folder (or selection) of files into a pastie; and then unpack it back into raw files
Homepage: http://drnic.github.com/pastie-packer/
Clone URL: git://github.com/drnic/pastie-packer.git
name age message
file .gitignore Wed Apr 02 22:20:46 -0700 2008 init import [drnic]
file .gitmodules Sun Dec 21 21:55:47 -0800 2008 migrated website -> gh-pages branch, and replac... [drnic]
file History.txt Tue Aug 05 16:20:37 -0700 2008 rel 1.1.1 - Fixed fetching of pastie urls [drnic]
file License.txt Wed Apr 02 22:20:46 -0700 2008 init import [drnic]
file Manifest.txt Sat Apr 05 00:54:43 -0700 2008 removed log/ from manifest [drnic]
file README.txt Mon Apr 07 19:18:58 -0700 2008 added rubyforge git repo details [drnic]
file Rakefile Wed Apr 02 22:20:46 -0700 2008 init import [drnic]
directory bin/ Fri Apr 04 22:50:29 -0700 2008 add help to readme/website; renamed bin/pastiep... [drnic]
directory config/ Sat Apr 05 15:58:17 -0700 2008 updated gem description; added google analytics... [drnic]
directory lib/ Tue Aug 05 16:20:37 -0700 2008 rel 1.1.1 - Fixed fetching of pastie urls [drnic]
directory log/ Wed Apr 02 22:20:46 -0700 2008 init import [drnic]
directory script/ Sat Apr 05 00:08:33 -0700 2008 renamed website/template.rhtml -> html.erb [drnic]
file setup.rb Wed Apr 02 22:20:46 -0700 2008 init import [drnic]
directory tasks/ Wed Apr 02 22:20:46 -0700 2008 init import [drnic]
directory test/ Sat Apr 05 00:48:12 -0700 2008 -H/--no-header stops the inclusion of the about... [drnic]
submodule website - ab62c3f Sun Dec 21 21:55:47 -0800 2008 migrated website -> gh-pages branch, and replac... [drnic]
README.txt
= pastiepacker

* http://pastiepacker.rubyforge.org

== DESCRIPTION:

Prepare to pack or unpack piles of files with the pastiepacker.

== SYNOPSIS:

To pack a folder: +pastiepacker+

Packing options:
    
    -f, --format=FORMAT       Possess pasties with a particular persona
                              Supported formats:
                              c++, css, diff, html_rails, html, 
                              javascript, php, plain_text, python, 
                              ruby, ruby_on_rails, sql, shell-unix-generic
                              Default: ruby
    -m, --message=MESSAGE     Promotional passage for your pastie
    -p, --private             Posted pasties are private
                              Ignored for unpacking
    -s, --stdout              Prints packed pasties instead of posting
    -H, --no-header           Prevents placing pastiepacker promotion in pasties
                              That is, no 'about:' section is added to the top of pasties
    -h, --help                Show this help message.                                     
    
To only pack a selection of files ending with *txt* you can pass a list of file names via STDIN: 

    find * | grep "txt$" | pastiepacker

It outputs the url of the prepared pastie, so you can pipe it to xargs:

    pastiepacker | xargs open

To unpack a packed pastie: pastiepacker http://pastie.caboo.se/175183
- This unpacks the files into a subfolder 175138/
To unpack a private pastie: pastiepacker http://pastie.caboo.se/private/5hwfheniddqmyasmfcxaw
- This unpacks the files into a subfolder 5hwfheniddqmyasmfcxaw/


== REQUIREMENTS:

* ruby
* rubygems

To test if you have these, the following should work:

  gem env

== INSTALL:

* sudo gem install pastiepacker

== CONTRIBUTIONS

The source for the Pastie Packer is available via git: http://github.com/drnic/pastie-packer/tree/master

    git clone git://github.com/drnic/pastie-packer.git pastiepacker
    cd pastiepacker
    rake install_gem
    
It is also available via rubyforge.org:
  
    git clone git://rubyforge.org/pastiepacker.git
    cd pastiepacker
    rake install_gem

== LICENSE:

(The MIT License)

Copyright (c) 2008 Dr Nic Williams

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.