summaryrefslogtreecommitdiff
path: root/lib/custodian/settings.rb
AgeCommit message (Collapse)Author
2015-04-16Correctly initialize our state.Steve Kemp
We'd failed to set the default value of our loaded-marker to false, although in-practice this wasn't a problem.
2015-03-09Removed trailing whitespace from the codeSteve Kemp
2015-03-09Whitespace fixups.Steve Kemp
These were all identified and suggested by rubocop.
2015-03-09Removed spaces inside parenthesis.Steve Kemp
2015-03-09Prefer single-quotes when you don't need interpolation.Steve Kemp
So "foo" is less good than 'foo'.
2015-03-09Don't use parenthesis aroudn conditions in an if.Steve Kemp
2015-03-09Do not use parentheses for method calls with no arguments.Steve Kemp
This is neater. Flagged by rubocop
2015-03-09Avoid "Array.new" and "Hash.new"Steve Kemp
Instead use {} + ().
2015-03-09File.exists? is deprecated.Steve Kemp
We prefer "File.exist?". Flagged by rubocop.
2015-03-04Reinstate the default logger as - file.Steve Kemp
2015-03-04New releaserelease-0.24.2Steve Kemp
2015-02-18Minor commenting/whitespace fixups.Steve Kemp
No functional changes.
2015-02-05Simplify code by removing configuration.Steve Kemp
We now set the queue-address via $QUEUE_ADDRESS, otherwise we default to localhost. This works for both redis & beanstalkd.
2015-01-21Added accessor for the queue-type.Steve Kemp
Default to redis as this is more likely to be installed.
2015-01-19Updated to use our queue-abstraction.Steve Kemp
This means we can queue/dequeue to either Redis or Beanstalkd.
2014-12-11Removed ruby1.8ismsPatrick J Cherry
2013-07-11 Added new global variable "alert_source", for use withSteve Kemp
mauve-notification.
2013-05-15 Correctly work if we have no settings file present.Steve Kemp
Previously we'd try to find the setting "foo" like so: @settings['foo'].to_i || 5 This would fail if the setting wasn't defined, because nil.to_i results in 0. But we must call to_i otherwise we'll have issues comparing strings/numbers.
2013-05-15 Added store() method for use by test case.Steve Kemp
updated comments.
2013-05-14 Ensure repeat_count and sleep values are integers.Steve Kemp
2013-05-14 Allow retry-behaviour to be tweaked.Steve Kemp
We can now sleep between retesting, and we configure the number of repeats via the configuration file.
2013-04-23 Allow the settings object to retrieve the name of the beanstalkd tube.Steve Kemp
2012-12-12 Updated comment.Steve Kemp
2012-12-12 The settings object will let you retrieve an arbitrary key.Steve Kemp
2012-11-30 comment + neatness update.Steve Kemp
2012-11-26 Updated so that each alert-type has its dedicated alert-target.Steve Kemp
2012-11-24 Updated comments.Steve Kemp
2012-11-24 Default alerter is "file".Steve Kemp
2012-11-24 Add accessor, with sane defaults, for the alertersSteve Kemp
2012-11-24 Added new helper to get the alerter.Steve Kemp
2012-11-23 Added attribute for the logfile.Steve Kemp
Updated default beanstalkd server port.
2012-11-23 Added this file to the project - not-yet used.Steve Kemp