dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit f1ffc2d01c84a4bfb1f1ca880e00695d06ae461e
parent a8c51126f604468f441fbbbacce841d58c9c1a57
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue,  7 Nov 2017 01:11:12 +0000

Remove .bin/fdump.

Diffstat:
.bin/fdump | 54------------------------------------------------------
1 file changed, 0 insertions(+), 54 deletions(-)

diff --git a/.bin/fdump b/.bin/fdump @@ -1,54 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# license: gnu gpl version 3 or higher. -# copyright 2015-2016 rsiddharth <s@ricketyspace.net> - -import shlex - - -from argparse import ArgumentParser -from os import environ as env -from subprocess import call -from sys import exit - - -def dest(): - """destination to dump file(s) to. - - """ - d = env.get('FDUMP_DEST') - - if d: - return d - else: - exit("Error: FDUMP_DEST not set!") - - -ident = env.get('FDUMP_ID') -"""path to ssh private key. - -""" - - -scp = 'scp' -"""`scp` command. - -""" - - -def dump(file_): - """dump a file.""" - d = dest() - - if ident: - call([scp, '-i', ident, file_, d]) - else: - call([scp, file_, d]) - - -if __name__ == '__main__': - parser = ArgumentParser() - parser.add_argument('srcs', nargs='+') - args = parser.parse_args() - - map(dump, args.srcs)