Parent

Methods

Class/Module Index [+]

Quicksearch

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
    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

[Validate]

Generated with the Darkfish Rdoc Generator 2.