ubuntu_ami 0.1 → 0.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/chef/knife/ubuntu_amis.rb +24 -0
  2. metadata +5 -11
@@ -0,0 +1,24 @@
1
+ require 'chef/knife'
2
+
3
+ module KnifePlugins
4
+ class Ec2AmisUbuntu < Chef::Knife
5
+
6
+ deps do
7
+ begin
8
+ require 'ubuntu_ami'
9
+ rescue LoadError
10
+ Chef::Log.error("Could not load Ubuntu AMI library.")
11
+ end
12
+ end
13
+
14
+ banner "knife ec2 amis ubuntu DISTRO [TYPE]"
15
+
16
+ def run
17
+ distro = name_args[0]
18
+ type = name_args[1]
19
+ ami_list = UbuntuAmi.new(distro).run[type] || UbuntuAmi.new(distro).run
20
+ output(format_for_display(ami_list))
21
+ end
22
+
23
+ end
24
+ end
metadata CHANGED
@@ -1,11 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ubuntu_ami
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- version: "0.1"
4
+ prerelease:
5
+ version: "0.2"
9
6
  platform: ruby
10
7
  authors:
11
8
  - Joshua Timberman
@@ -13,7 +10,7 @@ autorequire:
13
10
  bindir: bin
14
11
  cert_chain: []
15
12
 
16
- date: 2011-01-27 00:00:00 -07:00
13
+ date: 2011-04-23 00:00:00 -06:00
17
14
  default_executable:
18
15
  dependencies: []
19
16
 
@@ -28,6 +25,7 @@ extra_rdoc_files: []
28
25
  files:
29
26
  - LICENSE
30
27
  - README.md
28
+ - lib/chef/knife/ubuntu_amis.rb
31
29
  - lib/ubuntu_ami.rb
32
30
  has_rdoc: true
33
31
  homepage: http://github.com/jtimberman/ubuntu_ami
@@ -43,21 +41,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
41
  requirements:
44
42
  - - ">="
45
43
  - !ruby/object:Gem::Version
46
- segments:
47
- - 0
48
44
  version: "0"
49
45
  required_rubygems_version: !ruby/object:Gem::Requirement
50
46
  none: false
51
47
  requirements:
52
48
  - - ">="
53
49
  - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
50
  version: "0"
57
51
  requirements: []
58
52
 
59
53
  rubyforge_project:
60
- rubygems_version: 1.3.7
54
+ rubygems_version: 1.5.2
61
55
  signing_key:
62
56
  specification_version: 3
63
57
  summary: Retrieves AMI information from Canonical's Ubuntu release list.