cliaws 1.7.1 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/cliaws.gemspec +6 -7
- data/lib/cliaws/cli/ec2.rb +1 -1
- data/lib/cliaws/cli/s3.rb +1 -1
- data/lib/cliaws/cli/sqs.rb +1 -1
- data/lib/cliaws/ec2.rb +5 -1
- data/lib/cliaws/s3.rb +2 -2
- data/lib/cliaws/sqs.rb +3 -1
- metadata +4 -4
data/History.txt
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
* clis3 buckets: list all buckets
|
5
5
|
* clis3 grants: examine grants (permissions) on your buckets or objects
|
6
6
|
* clis3 grant, revoke: manage your bucket's or object's permissions
|
7
|
+
Granting using an email address will only work with http://github.com/francois/right_aws.git (1.10.99)
|
7
8
|
|
8
9
|
== 1.6.0 2009-07-13
|
9
10
|
|
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ begin
|
|
11
11
|
gemspec.executables = %w(clis3 clisqs cliec2)
|
12
12
|
gemspec.extra_rdoc_files = %w(History.txt License.txt vendor/right_http_connection-1.2.1/README.txt)
|
13
13
|
|
14
|
-
gemspec.add_dependency "thor", "~> 0.
|
14
|
+
gemspec.add_dependency "thor", "~> 0.11"
|
15
15
|
gemspec.add_dependency "right_aws", "~> 1.10"
|
16
16
|
end
|
17
17
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.3
|
data/cliaws.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{cliaws}
|
5
|
-
s.version = "1.7.
|
5
|
+
s.version = "1.7.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Fran\303\247ois Beausoleil"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-09-18}
|
10
10
|
s.description = %q{A command-line suite of tools to access Amazon Web Services, using the RightAws gems.}
|
11
11
|
s.email = %q{francois@teksol.info}
|
12
12
|
s.executables = ["clis3", "clisqs", "cliec2"]
|
@@ -34,12 +34,11 @@ Gem::Specification.new do |s|
|
|
34
34
|
"lib/cliaws/s3.rb",
|
35
35
|
"lib/cliaws/sqs.rb"
|
36
36
|
]
|
37
|
-
s.has_rdoc = true
|
38
37
|
s.homepage = %q{http://cliaws.rubyforge.org/}
|
39
38
|
s.rdoc_options = ["--charset=UTF-8"]
|
40
39
|
s.require_paths = ["lib"]
|
41
40
|
s.rubyforge_project = %q{cliaws}
|
42
|
-
s.rubygems_version = %q{1.3.
|
41
|
+
s.rubygems_version = %q{1.3.5}
|
43
42
|
s.summary = %q{A command-line suite of tools to access Amazon Web Services, using the RightAws gems.}
|
44
43
|
|
45
44
|
if s.respond_to? :specification_version then
|
@@ -47,14 +46,14 @@ Gem::Specification.new do |s|
|
|
47
46
|
s.specification_version = 3
|
48
47
|
|
49
48
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
50
|
-
s.add_runtime_dependency(%q<thor>, ["~> 0.
|
49
|
+
s.add_runtime_dependency(%q<thor>, ["~> 0.11"])
|
51
50
|
s.add_runtime_dependency(%q<right_aws>, ["~> 1.10"])
|
52
51
|
else
|
53
|
-
s.add_dependency(%q<thor>, ["~> 0.
|
52
|
+
s.add_dependency(%q<thor>, ["~> 0.11"])
|
54
53
|
s.add_dependency(%q<right_aws>, ["~> 1.10"])
|
55
54
|
end
|
56
55
|
else
|
57
|
-
s.add_dependency(%q<thor>, ["~> 0.
|
56
|
+
s.add_dependency(%q<thor>, ["~> 0.11"])
|
58
57
|
s.add_dependency(%q<right_aws>, ["~> 1.10"])
|
59
58
|
end
|
60
59
|
end
|
data/lib/cliaws/cli/ec2.rb
CHANGED
@@ -29,7 +29,7 @@ EOD
|
|
29
29
|
desc "run AMI", <<EOD
|
30
30
|
Launches one or more instances. Only one group may be specified at this time.
|
31
31
|
EOD
|
32
|
-
method_options :count => 1, :type => "m1.small", :keypair => :required, :group => :
|
32
|
+
method_options :count => 1, :type => "m1.small", :keypair => :required, :group => :string
|
33
33
|
def run(ami)
|
34
34
|
instances = Cliaws.ec2.run(ami, :type => options[:type], :count => options[:count], :keypair => options[:keypair], :groups => options[:group])
|
35
35
|
result = {"Started" => instances.map {|i| i.instance_id}}
|
data/lib/cliaws/cli/s3.rb
CHANGED
@@ -90,7 +90,7 @@ $ clis3 put photos/phil_johnson.jpg vacation/2009/phil_johnson.jpg
|
|
90
90
|
$ clis3 put photos/peter.jpg photos/sarah.jpg vacation/2009/photos/hosts
|
91
91
|
$ clis3 put movies vacation/2009/movies
|
92
92
|
EOD
|
93
|
-
method_options :data => :
|
93
|
+
method_options :data => :string
|
94
94
|
def put(*args)
|
95
95
|
paths = args
|
96
96
|
s3_object = paths.pop
|
data/lib/cliaws/cli/sqs.rb
CHANGED
@@ -47,7 +47,7 @@ Pushes a new message to the named queue.
|
|
47
47
|
|
48
48
|
Reads STDIN if LOCAL_FILE and --data are absent.
|
49
49
|
EOD
|
50
|
-
method_options :data => :
|
50
|
+
method_options :data => :string
|
51
51
|
def push(queue_name, local_file=nil)
|
52
52
|
raise ArgumentError, "Cannot give both --data and LOCAL_FILE" if options[:data] && local_file
|
53
53
|
data = case
|
data/lib/cliaws/ec2.rb
CHANGED
@@ -83,7 +83,11 @@ module Cliaws
|
|
83
83
|
|
84
84
|
protected
|
85
85
|
def ec2
|
86
|
-
@ec2 ||=
|
86
|
+
@ec2 ||= begin
|
87
|
+
logger = Logger.new(STDERR)
|
88
|
+
logger.level = Logger::WARN
|
89
|
+
RightAws::Ec2.new(access_key_id, secret_access_key, :logger => logger)
|
90
|
+
end
|
87
91
|
end
|
88
92
|
end
|
89
93
|
end
|
data/lib/cliaws/s3.rb
CHANGED
@@ -103,8 +103,8 @@ module Cliaws
|
|
103
103
|
|
104
104
|
def s3
|
105
105
|
@s3 ||= begin
|
106
|
-
logger = Logger.new(
|
107
|
-
logger.level = Logger::
|
106
|
+
logger = Logger.new(STDERR)
|
107
|
+
logger.level = Logger::WARN
|
108
108
|
RightAws::S3.new(access_key_id, secret_access_key, :logger => logger)
|
109
109
|
end
|
110
110
|
end
|
data/lib/cliaws/sqs.rb
CHANGED
@@ -3,7 +3,9 @@ require "right_aws"
|
|
3
3
|
module Cliaws
|
4
4
|
class Sqs
|
5
5
|
def initialize(access_key_id, secret_access_key)
|
6
|
-
|
6
|
+
logger = Logger.new(STDERR)
|
7
|
+
logger.level = Logger::WARN
|
8
|
+
@sqs = RightAws::SqsGen2.new(access_key_id, secret_access_key, :logger => logger)
|
7
9
|
end
|
8
10
|
|
9
11
|
# Gets a message from the queue, but doesn't delete it.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cliaws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Fran\xC3\xA7ois Beausoleil"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-18 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: "0.
|
23
|
+
version: "0.11"
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: right_aws
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements: []
|
87
87
|
|
88
88
|
rubyforge_project: cliaws
|
89
|
-
rubygems_version: 1.3.
|
89
|
+
rubygems_version: 1.3.5
|
90
90
|
signing_key:
|
91
91
|
specification_version: 3
|
92
92
|
summary: A command-line suite of tools to access Amazon Web Services, using the RightAws gems.
|