awsborn 0.7.0 → 0.8.0

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/spec/server_spec.rb CHANGED
@@ -17,12 +17,15 @@ describe Awsborn::Server do
17
17
  @server = SampleServer.new :sample, :zone => :eu_west_1a, :disk => {:sdf => "vol-aaaaaaaa"}
18
18
  end
19
19
 
20
- context "constants" do
20
+ describe "awz_constant" do
21
21
  it "should look up an availability zone" do
22
- @server.constant(:eu_west_1a).should == "eu-west-1a"
22
+ @server.awz_constant(:eu_west_1a).should == "eu-west-1a"
23
23
  end
24
24
  it "should look up an instance type" do
25
- @server.constant(:m1_large).should == "m1.large"
25
+ @server.awz_constant(:m1_large).should == "m1.large"
26
+ end
27
+ it "should raise an error if the symbol is unknown" do
28
+ expect{@server.awz_constant(:unknown_constant)}.to raise_error(Awsborn::UnknownConstantError)
26
29
  end
27
30
  end
28
31
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsborn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 63
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 7
8
+ - 8
9
9
  - 0
10
- version: 0.7.0
10
+ version: 0.8.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Vrensk
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-15 00:00:00 +02:00
18
+ date: 2011-08-11 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -107,25 +107,31 @@ extra_rdoc_files:
107
107
  - README.mdown
108
108
  files:
109
109
  - .document
110
- - .gitignore
111
110
  - LICENSE
112
111
  - README.mdown
113
112
  - Rakefile
114
113
  - VERSION
114
+ - awsborn.gemspec
115
115
  - contrib/chef-bootstrap.sh
116
116
  - contrib/cookbooks/ec2-ebs/recipes/default.rb
117
117
  - lib/awsborn.rb
118
+ - lib/awsborn/aws_constants.rb
118
119
  - lib/awsborn/awsborn.rb
119
120
  - lib/awsborn/ec2.rb
121
+ - lib/awsborn/elb.rb
120
122
  - lib/awsborn/extensions/object.rb
121
123
  - lib/awsborn/extensions/proc.rb
122
124
  - lib/awsborn/git_branch.rb
123
125
  - lib/awsborn/keychain.rb
124
126
  - lib/awsborn/known_hosts_updater.rb
127
+ - lib/awsborn/load_balancer.rb
125
128
  - lib/awsborn/rake.rb
126
129
  - lib/awsborn/server.rb
127
130
  - lib/awsborn/server_cluster.rb
131
+ - spec/aws_constants_spec.rb
128
132
  - spec/ec2_spec.rb
133
+ - spec/elb_spec.rb
134
+ - spec/load_balancer_spec.rb
129
135
  - spec/server_spec.rb
130
136
  - spec/spec.opts
131
137
  - spec/spec_helper.rb
@@ -134,8 +140,8 @@ homepage: http://github.com/icehouse/awsborn
134
140
  licenses: []
135
141
 
136
142
  post_install_message:
137
- rdoc_options:
138
- - --charset=UTF-8
143
+ rdoc_options: []
144
+
139
145
  require_paths:
140
146
  - lib
141
147
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -163,7 +169,5 @@ rubygems_version: 1.3.7
163
169
  signing_key:
164
170
  specification_version: 3
165
171
  summary: Awsborn defines servers as instances with a certain disk volume, which makes it easy to restart missing servers.
166
- test_files:
167
- - spec/ec2_spec.rb
168
- - spec/server_spec.rb
169
- - spec/spec_helper.rb
172
+ test_files: []
173
+
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
- awsborn.log