Sha256: 38b916dc8a9d30d12e41c0900a2b6aa438fd3812a91af30b04830abcc82ea50f

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

require 'rest_client'
begin
    RestClient.post('http://cluster.metaforas.cl/audios',
      "audio[audio_original]" => File.new(ARGV[1]),
      :api => ARGV[0])
rescue
    RestClient.post('http://cluster.metaforas.cl:8000/audios',
          "audio[audio_original]" => File.new(ARGV[1]),
          :api => ARGV[0])

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fonemas-0.4.3 bin/audioupload