nesquena-cap-recipes 0.2.15 → 0.2.16
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.yml +1 -1
- data/lib/cap_recipes/tasks/apache.rb +3 -3
- data/lib/cap_recipes/tasks/passenger.rb +3 -3
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -10,19 +10,19 @@ Capistrano::Configuration.instance(true).load do
|
|
10
10
|
desc "Stops the apache web server"
|
11
11
|
task :stop, :roles => :web do
|
12
12
|
puts "Stopping the apache server"
|
13
|
-
|
13
|
+
sudo "#{apache_init_path} stop"
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "Starts the apache web server"
|
17
17
|
task :start, :roles => :web do
|
18
18
|
puts "Starting the apache server"
|
19
|
-
|
19
|
+
sudo "#{apache_init_path} start"
|
20
20
|
end
|
21
21
|
|
22
22
|
desc "Restarts the apache web server"
|
23
23
|
task :restart, :roles => :web do
|
24
24
|
puts "Restarting the apache server"
|
25
|
-
|
25
|
+
sudo "#{apache_init_path} restart"
|
26
26
|
end
|
27
27
|
|
28
28
|
# ===============================================================
|
@@ -99,9 +99,9 @@ Capistrano::Configuration.instance(true).load do
|
|
99
99
|
|
100
100
|
desc "Setup Passenger Module"
|
101
101
|
task :passenger_apache_module, :roles => :web do
|
102
|
-
|
102
|
+
sudo "#{base_ruby_path}/bin/gem install passenger --no-ri --no-rdoc"
|
103
103
|
input = ''
|
104
|
-
run "sudo #{base_ruby_path}/bin/passenger-install-apache2-module" do |ch, stream, out|
|
104
|
+
run "#{sudo} #{base_ruby_path}/bin/passenger-install-apache2-module" do |ch, stream, out|
|
105
105
|
next if out.chomp == input.chomp || out.chomp == ''
|
106
106
|
print out
|
107
107
|
ch.send_data(input = $stdin.gets) if out =~ /(Enter|ENTER)/
|
@@ -126,7 +126,7 @@ Capistrano::Configuration.instance(true).load do
|
|
126
126
|
EOF
|
127
127
|
|
128
128
|
put passenger_config, "/tmp/passenger"
|
129
|
-
|
129
|
+
sudo "mv /tmp/passenger /etc/apache2/conf.d/passenger"
|
130
130
|
apache.restart
|
131
131
|
end
|
132
132
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nesquena-cap-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Esquenazi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-08 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|