Project

synaptic4r

0.0
No commit activity in last 3 years
No release in over 3 years
CLI and Ruby REST Client for ATT Synaptic Storage
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0.2
 Project Readme

synaptic4r¶ ↑

Ruby CLI for ATT Synaptic Storage.

Install¶ ↑

The synptic4r gem is in the gemcutter.org repository. If gemcutter.org is not in your gem sources issue the following command only one time,

sudo gem source -a gemcutter.org

and install synaptic4r

sudo gem install synaptic4r

Credentials¶ ↑

Save credentials to $HOME/.synaptic4r

single account

subtenant: SubtenantID 
uid:       UserID
key:       SecretKey
site:      https://storage.synaptic.att.com/rest

multiple accounts (the first is used by default, the dashes must be included in the file)

-
 account:   myacct
 subtenant: SubtenantID 
 uid:       UserID
 key:       SecretKey
 site:      https://storage.synaptic.att.com/rest

-
 account:   myotheracct
 subtenant: OtherSubtenantID 
 uid:       OtherUserID
 key:       OtherSecretKey
 site:      https://storage.synaptic.att.com/rest

Basic CLI Commands¶ ↑

list information here

synrest get-started

list all commands with descriptions

synrest

list contents of remote root directory

synrest get

create a remote directory named foo

	synrest create-dir foo

upload a file to directory foo

	synrest create-file file.txt foo/

list contents for remote directory foo

	synrest get foo

list contents for remote file foo/file.txt

	synrest get foo/file.txt

execute command for account other than default

	synrest command args [options] -u myotheracct

show examples for a command

	synrest command examples

Proxy¶ ↑

When using the programmatic API with an HTTP Proxy the proxy server is specified with,

RestClient.proxy = "http://proxy.example.com"

Copyright © 2009 ATT. See LICENSE for details.