stem 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/stem/image.rb +7 -0
  2. metadata +2 -2
@@ -14,6 +14,13 @@ module Stem
14
14
  swirl.call("DeregisterImage", "ImageId" => image)["return"]
15
15
  end
16
16
 
17
+ def list
18
+ l = swirl.call("DescribeImages", "Owner" => "self")["imagesSet"] || []
19
+ l.map do |i|
20
+ i["imageId"]
21
+ end
22
+ end
23
+
17
24
  def named name
18
25
  opts = get_filter_opts("name" => name).merge("Owner" => "self")
19
26
  i = swirl.call("DescribeImages", opts)["imagesSet"].first
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: stem
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.1
5
+ version: 0.8.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Peter van Hardenberg
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-05-02 00:00:00 -07:00
15
+ date: 2011-05-05 00:00:00 -07:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency