Top Level Namespace
Defined Under Namespace
Modules: Process, Rake, Vlad Classes: String, StringIO
Instance Method Summary collapse
-
#now ⇒ Object
used by update, out here so we can ensure all threads have the same value.
-
#vlad ⇒ Object
See the following documents for recipes:.
Instance Method Details
#now ⇒ Object
used by update, out here so we can ensure all threads have the same value
5 6 7 |
# File 'lib/vlad/core.rb', line 5 def now @now ||= Time.now.utc.strftime("%Y%m%d%H%M.%S") end |
#vlad ⇒ Object
See the following documents for recipes:
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/vlad/maintenance.rb', line 10 namespace :vlad do namespace :maintenance do remote_task :on, :roles => [:web] do run "cp -f #{shared_path}/config/maintenance.html #{shared_path}/system/" end remote_task :off, :roles => [:web] do run "rm -f #{shared_path}/system/maintenance.html" end end end |