From bece4598f74ed64c27db0ac0b21732216eb1051b Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Fri, 18 Nov 2011 20:03:39 -0500 Subject: [PATCH] Remove haste client --- TODO | 1 - haste | 25 ------------------------- 2 files changed, 26 deletions(-) delete mode 100755 haste diff --git a/TODO b/TODO index 1636d2c..74cbc69 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,4 @@ cache headers for static assets - tests # shared version only diff --git a/haste b/haste deleted file mode 100755 index 350ab59..0000000 --- a/haste +++ /dev/null @@ -1,25 +0,0 @@ -#! /usr/bin/env ruby - -require 'restclient' -require 'json' - -# Get the data -data = STDIN.readlines.join -data.strip! - -# if there is no data, stop -if data == '' - puts 'no input given' - exit 1 -end - -# Decide on a server -server = ENV['HASTE_SERVER'] || 'http://localhost:7777' -server.chop! if server.end_with?('/') - -# Send the data up -back = RestClient.post "#{server}/documents", data -data = JSON.parse(back) - -# Output the url -puts "#{server}/#{data['key']}"