rudy 0.9.8.011 → 0.9.8.012

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -44,7 +44,7 @@ module Rudy
44
44
  MAJOR = 0.freeze
45
45
  MINOR = 9.freeze
46
46
  TINY = 8.freeze
47
- PATCH = '011'.freeze
47
+ PATCH = '012'.freeze
48
48
  end
49
49
  def self.to_s; [MAJOR, MINOR, TINY, PATCH].join('.'); end
50
50
  def self.to_f; self.to_s.to_f; end
@@ -7,7 +7,7 @@ module AWS; module SDB;
7
7
 
8
8
 
9
9
  def objects_valid?
10
- raise "Must supply domain" if @argv.empty?
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
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "rudy"
3
3
  s.rubyforge_project = 'rudy'
4
- s.version = "0.9.8.011"
4
+ s.version = "0.9.8.012"
5
5
  s.summary = "Rudy: Not your grandparents' EC2 deployment tool."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
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: 49
4
+ hash: 63
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 8
10
- - 11
11
- version: 0.9.8.011
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-08-31 00:00:00 -04:00
19
+ date: 2010-09-02 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency