Project

scripter

0.0
No commit activity in last 3 years
No release in over 3 years
Library for reducing of boilerplate in ruby scripts with possibility to run fault tolerant iterations, for example mass notifications, or support scripts
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0
~> 3.0
~> 0.7.1

Runtime

 Project Readme

Scripter

Library for reducing of boilerplate in ruby scripts with possibility to run fault tolerant iterations, for example mass notifications, or support scripts

Installation

Add this line to your application's Gemfile:

gem 'scripter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install scripter

Usage

Usage example:

class MyScripterEnabledClass < 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:

MyScripterEnabledClass.execute

Contributing

  1. Fork it ( https://github.com/[my-github-username]/scripter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request