oneblackbear-obbistrano 1.0.45 → 1.0.46
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano_tasks.rb +6 -4
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -191,7 +191,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
191
191
|
# GENERAL ADMIN FOR APPLICATIONS
|
192
192
|
# =============================================================================
|
193
193
|
|
194
|
-
desc "Restarts the Apache Server."
|
194
|
+
desc "Restarts the Apache Server. Requires root password to access."
|
195
195
|
task :restart do
|
196
196
|
config_check
|
197
197
|
needs_root
|
@@ -200,12 +200,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
200
200
|
end
|
201
201
|
end
|
202
202
|
|
203
|
+
desc "Clears the application's cache files from tmp/cache."
|
203
204
|
task :clearcache do
|
204
|
-
run "rm -f tmp/cache/*"
|
205
|
+
run "cd #{deploy_to} && rm -f tmp/cache/*"
|
205
206
|
end
|
206
207
|
|
208
|
+
desc "Clears the application's log files from tmp/log."
|
207
209
|
task :clearlogs do
|
208
|
-
run "rm -f tmp/log/*"
|
210
|
+
run "cd #{deploy_to} && rm -f tmp/log/*"
|
209
211
|
end
|
210
212
|
|
211
213
|
|
@@ -291,7 +293,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
291
293
|
put config, "/etc/httpd/conf.d/#{webserver}-apache-vhost.conf"
|
292
294
|
end
|
293
295
|
end
|
294
|
-
|
296
|
+
restart
|
295
297
|
end
|
296
298
|
|
297
299
|
|
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.46"
|
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=
|