├── .gitignore ├── .rspec ├── .rubocop.yml ├── .travis.yml ├── Gemfile ├── LICENSE ├── README.rdoc ├── Rakefile ├── bin ├── loops └── loops-memory-stats ├── generators └── loops │ ├── loops_generator.rb │ └── templates │ ├── app │ └── loops │ │ ├── APP_README │ │ ├── queue_loop.rb │ │ └── simple_loop.rb │ ├── config │ └── loops.yml │ └── script │ └── loops ├── init.rb ├── lib ├── loops.rb └── loops │ ├── autoload.rb │ ├── base.rb │ ├── base_concerns │ └── config_option.rb │ ├── cli.rb │ ├── cli │ ├── commands.rb │ └── options.rb │ ├── command.rb │ ├── commands │ ├── debug_command.rb │ ├── list_command.rb │ ├── monitor_command.rb │ ├── start_command.rb │ ├── stats_command.rb │ └── stop_command.rb │ ├── daemonize.rb │ ├── engine.rb │ ├── errors.rb │ ├── exceptions.rb │ ├── logger.rb │ ├── process_manager.rb │ ├── queue.rb │ ├── testing.rb │ ├── version.rb │ ├── worker.rb │ └── worker_pool.rb ├── loops.gemspec └── spec ├── loop_lock_spec.rb ├── loops ├── base │ ├── config_option_spec.rb │ └── with_lock_spec.rb ├── base_spec.rb ├── cli_spec.rb └── commands │ └── list_command_spec.rb ├── loops_spec.rb ├── rails ├── another_loop.rb ├── app │ └── loops │ │ ├── complex_loop.rb │ │ └── simple_loop.rb ├── config.yml └── config │ ├── boot.rb │ ├── environment.rb │ ├── init.rb │ └── loops.yml ├── spec_helper.rb └── support └── loop_lock.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --backtrace 3 | --format documentation -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/LICENSE -------------------------------------------------------------------------------- /README.rdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/README.rdoc -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/loops: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/bin/loops -------------------------------------------------------------------------------- /bin/loops-memory-stats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/bin/loops-memory-stats -------------------------------------------------------------------------------- /generators/loops/loops_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/generators/loops/loops_generator.rb -------------------------------------------------------------------------------- /generators/loops/templates/app/loops/APP_README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/generators/loops/templates/app/loops/APP_README -------------------------------------------------------------------------------- /generators/loops/templates/app/loops/queue_loop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/generators/loops/templates/app/loops/queue_loop.rb -------------------------------------------------------------------------------- /generators/loops/templates/app/loops/simple_loop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/generators/loops/templates/app/loops/simple_loop.rb -------------------------------------------------------------------------------- /generators/loops/templates/config/loops.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/generators/loops/templates/config/loops.yml -------------------------------------------------------------------------------- /generators/loops/templates/script/loops: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/generators/loops/templates/script/loops -------------------------------------------------------------------------------- /init.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/init.rb -------------------------------------------------------------------------------- /lib/loops.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops.rb -------------------------------------------------------------------------------- /lib/loops/autoload.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/autoload.rb -------------------------------------------------------------------------------- /lib/loops/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/base.rb -------------------------------------------------------------------------------- /lib/loops/base_concerns/config_option.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/base_concerns/config_option.rb -------------------------------------------------------------------------------- /lib/loops/cli.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/cli.rb -------------------------------------------------------------------------------- /lib/loops/cli/commands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/cli/commands.rb -------------------------------------------------------------------------------- /lib/loops/cli/options.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/cli/options.rb -------------------------------------------------------------------------------- /lib/loops/command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/command.rb -------------------------------------------------------------------------------- /lib/loops/commands/debug_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/commands/debug_command.rb -------------------------------------------------------------------------------- /lib/loops/commands/list_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/commands/list_command.rb -------------------------------------------------------------------------------- /lib/loops/commands/monitor_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/commands/monitor_command.rb -------------------------------------------------------------------------------- /lib/loops/commands/start_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/commands/start_command.rb -------------------------------------------------------------------------------- /lib/loops/commands/stats_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/commands/stats_command.rb -------------------------------------------------------------------------------- /lib/loops/commands/stop_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/commands/stop_command.rb -------------------------------------------------------------------------------- /lib/loops/daemonize.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/daemonize.rb -------------------------------------------------------------------------------- /lib/loops/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/engine.rb -------------------------------------------------------------------------------- /lib/loops/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/errors.rb -------------------------------------------------------------------------------- /lib/loops/exceptions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/exceptions.rb -------------------------------------------------------------------------------- /lib/loops/logger.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/logger.rb -------------------------------------------------------------------------------- /lib/loops/process_manager.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/process_manager.rb -------------------------------------------------------------------------------- /lib/loops/queue.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/queue.rb -------------------------------------------------------------------------------- /lib/loops/testing.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/testing.rb -------------------------------------------------------------------------------- /lib/loops/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/version.rb -------------------------------------------------------------------------------- /lib/loops/worker.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/worker.rb -------------------------------------------------------------------------------- /lib/loops/worker_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/lib/loops/worker_pool.rb -------------------------------------------------------------------------------- /loops.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/loops.gemspec -------------------------------------------------------------------------------- /spec/loop_lock_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/loop_lock_spec.rb -------------------------------------------------------------------------------- /spec/loops/base/config_option_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/loops/base/config_option_spec.rb -------------------------------------------------------------------------------- /spec/loops/base/with_lock_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/loops/base/with_lock_spec.rb -------------------------------------------------------------------------------- /spec/loops/base_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/loops/base_spec.rb -------------------------------------------------------------------------------- /spec/loops/cli_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/loops/cli_spec.rb -------------------------------------------------------------------------------- /spec/loops/commands/list_command_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/loops/commands/list_command_spec.rb -------------------------------------------------------------------------------- /spec/loops_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/loops_spec.rb -------------------------------------------------------------------------------- /spec/rails/another_loop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/rails/another_loop.rb -------------------------------------------------------------------------------- /spec/rails/app/loops/complex_loop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/rails/app/loops/complex_loop.rb -------------------------------------------------------------------------------- /spec/rails/app/loops/simple_loop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/rails/app/loops/simple_loop.rb -------------------------------------------------------------------------------- /spec/rails/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/rails/config.yml -------------------------------------------------------------------------------- /spec/rails/config/boot.rb: -------------------------------------------------------------------------------- 1 | RAILS_BOOT_LOADED = true -------------------------------------------------------------------------------- /spec/rails/config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/rails/config/environment.rb -------------------------------------------------------------------------------- /spec/rails/config/init.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/rails/config/init.rb -------------------------------------------------------------------------------- /spec/rails/config/loops.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/rails/config/loops.yml -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/loop_lock.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kovyrin/loops/HEAD/spec/support/loop_lock.rb --------------------------------------------------------------------------------