CommandTimer

Simple tool to execute commands on schedule. Designed for maintain web applications.

Installation

$ gem install command_timer

Usage

$ cmdtimer COMMAND_CONFIG_FILE

Config File Sample (YAML)

command1:
    description: "stop unicorn"
    burn_time: "14:00:00"
    content: |
        cd /path/to/app/
        cap unicorn:stop
command2:
    desciption: "deploy"
    burn_time:
    content: |
        cd /path/to/app/
        cap deploy
    observer: |
        cd /path/to/app/
        cap invoke COMMAND="tail -f /path/to/log/file"
command3:
    description: "start unicorn"
    burn_time: "16:00:00"
    content: |
        cd /path/to/app/
        cap unicorn:start

burn_time

HH:mm:ssexecute commands on time
blankexecute commands by user input
autoexecute commands after previous command ended