lib/rulebow/runner.rb
# Run rules periodically.
#
# Returns nothing.
Run rules periodically.
Returns nothing.
Run rules periodically . Returns nothing .
def autorun(name)
      Dir.chdir(root) do
        fresh_digest(name) if fresh?
        trap("INT") { puts "\nBows down."; exit }
        puts "    (        RULEBOW "
        puts "     \\       (pid #{Process.pid})"
        puts "      )      "
        puts " ##--------> "
        puts "      )      "
        puts "     /       "
        puts "    (        "
        loop do
          run_ruleset(name)
          sleep(watch)
        end
      end
    end
def autorun ( name ) Dir . chdir ( root ) do fresh_digest ( name ) if fresh? trap ( "INT" ) { puts "\nBows down." ; exit } puts "    (        RULEBOW " puts "     \\       (pid #{Process.pid})" puts "      )      " puts " ##--------> " puts "      )      " puts "     /       " puts "    (        " loop do run_ruleset ( name ) sleep ( watch ) end end end
Run rules periodically.
Run rules periodically .
name
<not_specific>