Module: Scripter
- Defined in:
- lib/scripter.rb,
lib/scripter/base.rb,
lib/scripter/errors.rb,
lib/scripter/logger.rb,
lib/scripter/version.rb,
lib/scripter/cache_store.rb,
lib/scripter/env_variables.rb,
lib/scripter/iteration_history.rb
Overview
Library for reducing of boilerplate in ruby scripts with possibility to run fault tolerant iterations, for example mass notifications, or support scripts
Usage example: class MyScriptClass < Scripter::Base
#ENV variables which will be assigned to instance
env_variables :test_env
def execute
# your specific execution code goes here
# Note: use #perform_iteration helper with block in order to make fault tolerant iterations
end
def on_exit
# your reporting scripts goes here
# Note: #valid?, invalid?, #errors_grouped and #errors_count methods can be useful here
end
end
Call example: MyScriptClass.execute
Defined Under Namespace
Modules: EnvVariables, Errors, IterationHistory, Logger Classes: Base, CacheStore
Constant Summary collapse
- VERSION =
'0.1.0'