awsborn 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/awsborn.gemspec +3 -2
- data/lib/awsborn/known_hosts_updater.rb +1 -1
- data/spec/known_hosts_updater_spec.rb +19 -0
- metadata +5 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.4
|
data/awsborn.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{awsborn}
|
8
|
-
s.version = "0.8.
|
8
|
+
s.version = "0.8.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Vrensk", "Jean-Louis Giordano"]
|
12
|
-
s.date = %q{2011-08-
|
12
|
+
s.date = %q{2011-08-26}
|
13
13
|
s.description = %q{Awsborn lets you define and launch a server cluster on Amazon EC2.}
|
14
14
|
s.email = %q{david@icehouse.se}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -43,6 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
"spec/aws_constants_spec.rb",
|
44
44
|
"spec/ec2_spec.rb",
|
45
45
|
"spec/elb_spec.rb",
|
46
|
+
"spec/known_hosts_updater_spec.rb",
|
46
47
|
"spec/load_balancer_spec.rb",
|
47
48
|
"spec/route53_spec.rb",
|
48
49
|
"spec/server_cluster_spec.rb",
|
@@ -52,7 +52,7 @@ module Awsborn
|
|
52
52
|
regexp = %r{BEGIN SSH HOST KEY FINGERPRINTS.*((?:[0-9a-f]{2}:){15}[0-9a-f]{2}) /etc/ssh/ssh_host_rsa_key.pub }m
|
53
53
|
@console_fingerprint = Awsborn.wait_for "console output", 15, 420 do
|
54
54
|
console = ec2.get_console_output
|
55
|
-
|
55
|
+
unless console.empty?
|
56
56
|
fingerprint = console[regexp, 1]
|
57
57
|
if ! fingerprint
|
58
58
|
logger.error "*** SSH RSA fingerprint not found ***"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe Awsborn::KnownHostsUpdater do
|
4
|
+
describe "#get_console_fingerprint" do
|
5
|
+
it "sets @console_finger_print" do
|
6
|
+
Awsborn.stub!(:wait_for).and_yield
|
7
|
+
ec2 = mock("ec2")
|
8
|
+
fingerprint =<<-EOS
|
9
|
+
-----BEGIN SSH HOST KEY FINGERPRINTS-----
|
10
|
+
2048 ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff /etc/ssh/ssh_host_rsa_key.pub (RSA)
|
11
|
+
EOS
|
12
|
+
ec2.stub!(:get_console_output).and_return(fingerprint)
|
13
|
+
|
14
|
+
updater = Awsborn::KnownHostsUpdater.new ec2, "localhost"
|
15
|
+
updater.get_console_fingerprint
|
16
|
+
updater.console_fingerprint.should == "ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
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:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 4
|
10
|
+
version: 0.8.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Vrensk
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-08-
|
19
|
+
date: 2011-08-26 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- spec/aws_constants_spec.rb
|
134
134
|
- spec/ec2_spec.rb
|
135
135
|
- spec/elb_spec.rb
|
136
|
+
- spec/known_hosts_updater_spec.rb
|
136
137
|
- spec/load_balancer_spec.rb
|
137
138
|
- spec/route53_spec.rb
|
138
139
|
- spec/server_cluster_spec.rb
|