rudy 0.9.8.011 → 0.9.8.012
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +4 -0
- data/bin/rudy-sdb +1 -0
- data/lib/rudy.rb +1 -1
- data/lib/rudy/cli/aws/sdb/objects.rb +12 -1
- data/rudy.gemspec +1 -1
- metadata +4 -4
data/CHANGES.txt
CHANGED
@@ -12,6 +12,10 @@ Creating volume...
|
|
12
12
|
(S)kip (A)bort:
|
13
13
|
|
14
14
|
|
15
|
+
#### 0.9.8.012 (2010-09-02) #######################
|
16
|
+
|
17
|
+
* ADDED: rudy-sdb objects --destroy
|
18
|
+
|
15
19
|
#### 0.9.8.011 (2010-08-31) #######################
|
16
20
|
|
17
21
|
* ADDED: Global --positions option to override positions variable through CLI
|
data/bin/rudy-sdb
CHANGED
@@ -35,6 +35,7 @@ module RudyCLI_SDB
|
|
35
35
|
command_alias :domains, :domain
|
36
36
|
|
37
37
|
about "Displays objects contained in a SimpleDB domain"
|
38
|
+
action :D, :destroy, "Remove a key from the domain (careful!)"
|
38
39
|
argv :name, :key
|
39
40
|
command :objects => Rudy::CLI::AWS::SDB::Objects
|
40
41
|
command_alias :objects, :object
|
data/lib/rudy.rb
CHANGED
@@ -7,7 +7,7 @@ module AWS; module SDB;
|
|
7
7
|
|
8
8
|
|
9
9
|
def objects_valid?
|
10
|
-
raise "
|
10
|
+
raise "Usage: rudy-sdb objects DOMAIN" if @argv.empty?
|
11
11
|
true
|
12
12
|
end
|
13
13
|
def objects
|
@@ -27,6 +27,17 @@ module AWS; module SDB;
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
def objects_destroy_valid?
|
31
|
+
raise "Usage: rudy-sdb objects -D DOMAIN OBJECTNAME" if @argv.size < 2
|
32
|
+
true
|
33
|
+
end
|
34
|
+
def objects_destroy
|
35
|
+
@sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
|
36
|
+
domain, name = @argv
|
37
|
+
puts "Deleteing #{name} from #{domain}"
|
38
|
+
@sdb.destroy domain, name
|
39
|
+
end
|
40
|
+
|
30
41
|
end
|
31
42
|
|
32
43
|
end; end
|
data/rudy.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rudy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 8
|
10
|
-
-
|
11
|
-
version: 0.9.8.
|
10
|
+
- 12
|
11
|
+
version: 0.9.8.012
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Delano Mandelbaum
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-09-02 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|