public
Description: A command-line client for Amazon Web Services
Homepage: http://rubyforge.org/projects/cliaws
Clone URL: git://github.com/francois/cliaws.git
Search Repo:
francois (author)
Wed Apr 30 08:33:03 -0700 2008
commit  fdfa3e508e98841c8842b287b20b60bcfde3ed04
tree    af5c3175e4d4b809928a570e378ba6083befb6ff
parent  54d9007748afda9ce8ee29aedf0e129d71df921c
cliaws / README.txt
100644 76 lines (55 sloc) 2.687 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
= cliaws
 
* http://rubyforge.org/projects/cliaws
 
== DESCRIPTION:
 
A command-line client for Amazon Web Services.
 
== FEATURES/PROBLEMS:
 
* Amazon keys are read from the environment only. They environment keys must
  be named: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
* Minimal amount of error checking is done. Check the command's status after
  each call.
* No logging.
 
== SYNOPSIS:
 
Usage from the command line:
 
  $ clis3 list my_awesome_bucket/a_glob
  $ clis3 put my_awesome_bucket/a_key_name a_local_file
  $ cat a_local_file | clis3 put my_awesome_bucket/a_key_name
  $ clis3 put --data "this is the data" my_awesome_bucket/a_key_name
  $ clis3 get my_awesome_bucket/a_key_name a_local_file
  $ clis3 get my_awesome_bucket/a_key_name # Outputs to STDOUT
  $ clis3 cat my_awesome_bucket/a_key_name # Outputs to STDOUT, but adds an extra newline
  $ clis3 head my_awesome_bucket/a_key_name
    # Returns a YAML representation of response and metadata headers
  $ clis3 rm my_awesome_bucket/a_key_name
 
Cliaws may also be used from Ruby:
 
  Cliaws.s3.list("my_awesome_bucket/a_glob") # Returns an array of names
  Cliaws.s3.put(File.open("a_local_file", "rb"), "my_awesome_bucket/a_key_name")
  Cliaws.s3.put(STDIN, "my_awesome_bucket/a_key_name")
  Cliaws.s3.put("this is the data", "my_awesome_bucket/a_key_name")
  Cliaws.s3.get("my_awesome_bucket/a_key_name")
  Cliaws.s3.head("my_awesome_bucket/a_key_name")
  Cliaws.s3.rm("my_awesome_bucket/a_key_name")
 
== REQUIREMENTS:
 
* main
* activesupport
* right_aws
 
== INSTALL:
 
* sudo gem install cliaws
 
== LICENSE:
 
(The MIT License)
 
Copyright (c) 2008 François Beausoleil (francois@teksol.info)
 
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.