Top Level Namespace
Defined Under Namespace
Modules: Process, Vlad Classes: String, StringIO, VladTestCase
Instance Method Summary collapse
- #export(receiver, *methods) ⇒ Object
-
#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
#export(receiver, *methods) ⇒ Object
10 11 12 13 14 |
# File 'lib/rake_remote_task.rb', line 10 def export receiver, *methods methods.each do |method| eval "def #{method} *args, █ #{receiver}.#{method}(*args, &block);end" end end |
#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 |