Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drnic/pastie-packer
Pack a folder (or selection) of files into a pastie; and then unpack it back into raw files
https://github.com/drnic/pastie-packer
Last synced: 2 months ago
JSON representation
Pack a folder (or selection) of files into a pastie; and then unpack it back into raw files
- Host: GitHub
- URL: https://github.com/drnic/pastie-packer
- Owner: drnic
- License: mit
- Created: 2008-04-03T11:38:57.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2008-12-22T05:55:52.000Z (about 16 years ago)
- Last Synced: 2023-04-12T05:45:36.408Z (over 1 year ago)
- Language: Ruby
- Homepage: http://drnic.github.com/pastie-packer/
- Size: 189 KB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- Changelog: History.txt
- License: License.txt
Awesome Lists containing this project
README
= 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
* rubygemsTo 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.