bc-cap-recipes 0.0.4 → 0.0.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/lib/apache.rb +3 -3
- metadata +2 -2
data/lib/apache.rb
CHANGED
|
@@ -6,17 +6,17 @@ configuration.load do
|
|
|
6
6
|
namespace :apache do
|
|
7
7
|
desc "Create virtual host configuration file"
|
|
8
8
|
task :bootstrap do
|
|
9
|
-
|
|
9
|
+
run "[ -f /etc/apache2/sites-available/#{application} ] || echo -e \"<VirtualHost *:80>\n ServerName #{application}.byclosure.com\n DocumentRoot #{deploy_to}/current/public\n</VirtualHost>\" > /etc/apache2/sites-available/#{application}"
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
desc "Enables site"
|
|
13
13
|
task :enable_site do
|
|
14
|
-
sudo "a2ensite #{application}"
|
|
14
|
+
sudo "/usr/sbin/a2ensite #{application}"
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
desc "disables site"
|
|
18
18
|
task :disable_site do
|
|
19
|
-
sudo "a2dissite #{application}"
|
|
19
|
+
sudo "/usr/sbin/a2dissite #{application}"
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
desc "Reloads apache"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bc-cap-recipes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Byclosure
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-01-19 00:00:00 +
|
|
12
|
+
date: 2010-01-19 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|