oneblackbear-obbistrano 1.0.20 → 1.0.21
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/lib/obbistrano_tasks.rb +4 -2
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -251,12 +251,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
251
251
|
public_ip = ""
|
252
252
|
run "ifconfig eth0 | grep inet | awk '{print $2}' | sed 's/addr://'" do |_, _, public_ip| end
|
253
253
|
public_ip = public_ip.strip
|
254
|
-
f = File.open('templates/apache_vhost.erb')
|
254
|
+
f = File.open(File.join(File.dirname(__FILE__), 'templates/apache_vhost.erb' ))
|
255
255
|
contents = f.read
|
256
256
|
f.close
|
257
257
|
buffer = ERB.new(contents)
|
258
258
|
config = buffer.result(binding())
|
259
|
-
|
259
|
+
roles[:web].servers.each do |webserver|
|
260
|
+
put config, "/etc/httpd/conf.d/#{webserver}-apache-vhost.conf"
|
261
|
+
end
|
260
262
|
end
|
261
263
|
|
262
264
|
end
|
data/obbistrano.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{obbistrano}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.21"
|
6
6
|
s.authors = ["Ross Riley", "One Black Bear"]
|
7
7
|
s.date = Time.now
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|