class Object

Public Instance Methods

now() click to toggle source

used by update, out here so we can ensure all threads have the same value

# File lib/vlad/core.rb, line 5
def now
  @now ||= Time.now.utc.strftime("%Y%m%d%H%M.%S")
end
vlad() click to toggle source

See the following documents for recipes:

# File lib/vlad/maintenance.rb, line 10
namespace :vlad do
  namespace :maintenance do

    desc "Turn on the maintenance web page"

    remote_task :on, :roles => [:web] do
      run "cp -f #{shared_path}/config/maintenance.html #{shared_path}/system/"
    end

    desc "Turn off the maintenance web page"

    remote_task :off, :roles => [:web] do
      run "rm -f #{shared_path}/system/maintenance.html"
    end
  end
end