text /

Full commit
from __future__ import with_statement
from fabric.api import *
from fabric.contrib.console import confirm
from fabric.colors import green
from fabric.contrib.files import sed

def publish(file):
    local('s3cmd put --acl-public '+file+' s3://'+file)
    print(green("Published! - check"+file))
def sign(file):
    local('gpg --clearsign '+file)
    local('rm '+file)
    local('cp '+file+".asc "+file)
    local('rm '+file+".asc ")
def rename(file):
def verify(file):
    local('gpg --verify '+file)

def ls():
    local('s3cmd ls s3://')
def index():
    intro_txt = '''
Bunch of text files. You can find them at
and also as a mercurial repository
All of them are inline signed by my GPG keys. The mercurial reposiotry 
commits are also signed.

Thejesh GN <>
GPG keys are at :
Fingerprint: C7D4 1911 9893 ADAF 27B0 FCAA BFFC 8DD3 C06D D6B0

How to validate :
1. Import my gpg keys
    >wget -O- | gpg --import
    >gpg --recv-keys  0xBFFC8DD3C06DD6B0

2. Check finger print
    >gpg --fingerprint 0xBFFC8DD3C06DD6B0
        it should return    
    pub   4096R/C06DD6B0 2012-01-24
    Key fingerprint = C7D4 1911 9893 ADAF 27B0  FCAA BFFC 8DD3 C06D D6B0
3. Check the signature
    >gpg --verify readme.txt 
    >wget -O- | gpg --verify
        if everything is okay it should return

    gpg: Signature made Sat 29 Sep 2012 06:12:36 PM IST using RSA key ID C06DD6B0
    gpg: Good signature from Thejesh GN (Thej) <>

=================== LIST OF AVAILABLE FILES ========================

    local(' echo "'+intro_txt+'"  > index.txt ')
    local('s3cmd ls s3:// >> index.txt')
    local("sed -i 's/s3:/http:/' index.txt")