amazon-ec2 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,8 @@ More recently, support has been added for the following EC2 related AWS API's as
10
10
 
11
11
  * Autoscaling
12
12
  * Cloudwatch
13
- * Elastic Load Balancing
13
+ * Elastic Load Balancing (ELB)
14
+ * Relational Database Service (RDS)
14
15
 
15
16
  For the most complete and up-to date README information please visit the project homepage at:
16
17
 
@@ -87,10 +88,9 @@ The 'ec2sh' and 'ec2-gem-example.rb' scripts which will be introduced to you sho
87
88
 
88
89
  Edit the file ~/.bash_login and add the following to the existing contents:
89
90
 
91
+ # OPTIONAL : Why 'export RUBYOPT'? Because we leave loading libs up to you... See : http://gist.github.com/54177
90
92
  export RUBYOPT="rubygems"
91
93
 
92
- Why 'export RUBYOPT'? Because we leave loading libs up to you... See : http://gist.github.com/54177
93
-
94
94
  # For amazon-ec2 and amazon s3 ruby gems
95
95
  export AMAZON_ACCESS_KEY_ID="YOUR_ACCESS_KEY_ID"
96
96
  export AMAZON_SECRET_ACCESS_KEY="YOUR_SECRET_ACCESS_KEY_ID"
@@ -200,8 +200,7 @@ Try out the following bit of code. This should walk through each image returned
200
200
 
201
201
  Rails::Initializer.run do |config|
202
202
  ...
203
- # INSERT THIS LINE IN YOUR CONFIG
204
- config.gem "amazon-ec2", :lib => "EC2"
203
+ config.gem "amazon-ec2", :lib => "AWS", :source => "http://gemcutter.org/"
205
204
  ...
206
205
  end
207
206
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{amazon-ec2}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Glenn Rempe"]
12
- s.date = %q{2009-10-29}
12
+ s.date = %q{2009-11-14}
13
13
  s.description = %q{A Ruby library for accessing the Amazon Web Services Elastic Compute Cloud (EC2), Elastic Load Balancer (ELB), Cloudwatch, and Autoscaling API's.}
14
14
  s.email = %q{glenn@rempe.us}
15
15
  s.executables = ["ec2-gem-example.rb", "ec2-gem-profile.rb", "ec2sh", "setup.rb"]
@@ -136,3 +136,4 @@ Gem::Specification.new do |s|
136
136
  s.add_dependency(%q<perftools.rb>, ["= 0.1.6"])
137
137
  end
138
138
  end
139
+
@@ -70,9 +70,9 @@ module AWS
70
70
  raise ArgumentError, ":image_id must be provided" if options[:image_id].nil? || options[:image_id].empty?
71
71
  raise ArgumentError, ":min_count is not valid" unless options[:min_count].to_i > 0
72
72
  raise ArgumentError, ":max_count is not valid" unless options[:max_count].to_i > 0
73
- raise ArgumentError, ":addressing_type must be 'direct' or 'public'" unless options[:addressing_type] == "public" || options[:addressing_type] == "direct"
74
- raise ArgumentError, ":instance_type must be 'm1.small', 'm1.large', 'm1.xlarge', 'c1.medium', or 'c1.xlarge'" unless options[:instance_type] == "m1.small" || options[:instance_type] == "m1.large" || options[:instance_type] == "m1.xlarge" || options[:instance_type] == "c1.medium" || options[:instance_type] == "c1.xlarge"
75
- raise ArgumentError, ":base64_encoded must be 'true' or 'false'" unless options[:base64_encoded] == true || options[:base64_encoded] == false
73
+ raise ArgumentError, ":addressing_type must be 'direct' or 'public'" unless ["public", "direct"].include?(options[:addressing_type])
74
+ raise ArgumentError, ":instance_type must specify a valid instance size" unless ["m1.small", "m1.large", "m1.xlarge", "c1.medium", "c1.xlarge", "m2.2xlarge", "m2.4xlarge"].include?(options[:instance_type])
75
+ raise ArgumentError, ":base64_encoded must be 'true' or 'false'" unless [true, false].include?(options[:base64_encoded])
76
76
 
77
77
  user_data = extract_user_data(options)
78
78
 
@@ -209,4 +209,5 @@ module AWS
209
209
  end
210
210
 
211
211
  end
212
- end
212
+ end
213
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glenn Rempe
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-29 00:00:00 -07:00
12
+ date: 2009-11-14 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency