A hook to archive and unarchive with tar. Operates synchronously for now.
NOTE: Pull request making this asynchronous are very welcome as long as they work with huge (2+ gigabyte compressed) files.
npm install -g hook.io-tar
./bin/hookio-tar
This starts a hook and reads the local config.json. The files listed there will be compressed or uncompressed. A sample is provided in examples/example-config.json. The config option is included for debugging and testing purposes, in general you will want to use messages and code.
tar::archive [in]
source: an array of source file names. Required. Those files will be archived.
target: the target file name. Required.
tar::unarchive [in]
source: the source file name. Required. This is the file that will be unarchived.
targetPath: The optional target path (-C tar option). Optional.
tar::error [out]
code: code
source:
target:
tar::archive-complete [out]
code: code
source:
target:
tar::unarchive-complete [out]
source :
targetPath : The target file name.
The package config contains experimental hook.io schema definitions. The definition is also exported as hook. Signatures will be served from a signature server (more to come).
Tar = require("hook.io-tar").Tar
hook = new Tar(name: 'tar')
var Tar = require("hook.io-tar").Tar;
var hook = new Tar({ name: 'tar' });
Check out
Follow us on Twitter at
- @getscottyapp
- @martin_sunset
and like us on Facebook please. Every mention is welcome and we follow back.
Listened to lots of M.I.A. and Soundgarden while writing this.
- Ah well. Nothing to report here
- Minor cleanups, including coffee-script beautification
- First version
- npm run-script watch
- Change version in package.json
- git tag -a v0.0.3 -m 'version 0.0.3'
- git push --tags
- npm publish
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
- Fork the project
- Start a feature/bugfix branch
- Commit and push until you are happy with your contribution
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
- Please try not to mess with the package.json, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Copyright (c) 2011 Martin Wawrusch. See LICENSE for further details.