1 |
|
# Purpose: FreeRIDE setup file. |
2 |
|
# |
3 |
|
# $Id$ |
4 |
|
# |
5 |
|
# Authors: Rich Kilmer <rich@infoether.com> |
6 |
|
# Contributors: |
7 |
|
# |
8 |
|
# This file is part of the FreeRIDE project |
9 |
|
# |
10 |
|
# This application is free software; you can redistribute it and/or |
11 |
|
# modify it under the terms of the Ruby license defined in the |
12 |
|
# COPYING file. |
13 |
|
# |
14 |
|
# Copyright (c) 2001 Rich Kilmer. All rights reserved. |
15 |
|
# |
16 |
|
|
17 |
# Publishing an integer to this location will shut down FreeRIDE in that many seconds |
# Publishing an integer to this location will shut down FreeRIDE in that many seconds |
18 |
@bus[SHUTDOWN].validate_with("Specify number of seconds") do |args| |
@bus[SHUTDOWN].validate_with("Specify number of seconds") do |args| |
19 |
args.size==1 and args[0].respond_to? "to_i" # validate convertable to integer |
args.size==1 and args[0].respond_to? "to_i" # validate convertable to integer |