awsborn 0.3.4 → 0.3.5
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/VERSION +1 -1
- data/lib/awsborn/server.rb +2 -6
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.5
|
data/lib/awsborn/server.rb
CHANGED
|
@@ -142,11 +142,7 @@ module Awsborn
|
|
|
142
142
|
def copy_sudo_users_keys_to_root
|
|
143
143
|
system("ssh #{sudo_user}@#{host_name} 'sudo cp .ssh/authorized_keys /root/.ssh/authorized_keys'")
|
|
144
144
|
end
|
|
145
|
-
|
|
146
|
-
def path_relative_to_script (path)
|
|
147
|
-
File.join(File.dirname(File.expand_path($0)), path)
|
|
148
|
-
end
|
|
149
|
-
|
|
145
|
+
|
|
150
146
|
def associate_address
|
|
151
147
|
logger.debug "Associating address #{elastic_ip} to #{name}"
|
|
152
148
|
ec2.associate_address(elastic_ip)
|
|
@@ -155,7 +151,7 @@ module Awsborn
|
|
|
155
151
|
|
|
156
152
|
def bootstrap
|
|
157
153
|
logger.debug "Bootstrapping #{name}"
|
|
158
|
-
script =
|
|
154
|
+
script = bootstrap_script
|
|
159
155
|
basename = File.basename(script)
|
|
160
156
|
system "scp #{script} root@#{elastic_ip}:/tmp"
|
|
161
157
|
system "ssh root@#{elastic_ip} 'cd /tmp && chmod 700 #{basename} && ./#{basename}'"
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 3
|
|
8
|
-
-
|
|
9
|
-
version: 0.3.
|
|
8
|
+
- 5
|
|
9
|
+
version: 0.3.5
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- David Vrensk
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-04-
|
|
17
|
+
date: 2010-04-27 00:00:00 +02:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|