Module: SampleFile

Included in:
Main
Defined in:
lib/sample.rb

Constant Summary collapse

SAMPLE_CONFIGURATION_FILE =
"# SAMPLE RECKONER CONFIGURATION FILES\n# Reckoner uses a YAML formatted file to define the checks\n# that it should perform.  The file has two sections,\n# the 'check' section and the 'mail' section.\n\n# The check section contains a list of check blocks, each \n# of which defines one set of checks.\ncheck:\n\n  # Define default settings for all of your check blocks.\n  # This default check sets my home directory as a default\n  # base path for my checks.\n  #\n  # The default_check block is not required.\n  default_check:\n    base_path: /home/geoffk\n\n  # This is the simplest possible check.  It simply ensures\n  # that there exists a file named '.bash_history'.  Since this\n  # check doesn't overwrite the default 'base_path' it will\n  # check for this file in '/home/geoffk'\n  geoff_check:\n    files: .bash_history\n\n  # This check block, named 'etc-files', sets its own base\n  # path of '/etc' and then checks that two files,\n  # 'redhat-release' and 'inittab', exist there.  Note the\n  # use of square brackets and the comma to make a list of files.\n  etc-files:\n    base_path: /etc\n    files: [fake-file, inittab]\n\n  # This check ensures that two files exist and that they are \n  # at least 1kb in size and have been updated in the last\n  # three days. \n  desktop-files:\n    base_path: /home/geoffk/Desktop\n    files: [bookmarks.html, songs.txt]\n    freshness: 3 days\n    minimum_size: 1 kb\n\n# The mail section is required for email notifications.  The only\n# required setting inside the mail section is 'to'. \nmail:\n  to: DESTINATION EMAIL ADDRESS\n  #from: defaults to current user \n  #subject_prefix: \"RECKONER:\"\n  #always_email: true\n\n"