postjob 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/postjob/cli/run.rb +11 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ada3a8cd205df1f0b5e8dc42e90b3bef97051b4
4
- data.tar.gz: c5cb76fb6722a68e8ff428116ab0f480be497dce
3
+ metadata.gz: 59c807c8972b7fd832b05791eeadb33973a64c6b
4
+ data.tar.gz: 4d53811bbce64a7810438d3280b234ad8a6c7dd0
5
5
  SHA512:
6
- metadata.gz: d44b956774c44038aa24d2be363b15f2f80da764d3e4ff0246a4b5a11c5eced09b025075a7c8ccbfbd085a728aecefdc3a611f05aaee014c613084b133fb2f2e
7
- data.tar.gz: 4c91bb5b960f78a42dcb49c1c5d92b0e7d5aa5b20dd870ab847168269b7fe1b79fa07b0a767309ecd7b979ab24054385b9ad263f5521073dfc79d2c619bdd5c1
6
+ metadata.gz: 623abb4dd78666f69c5182cc993e0f943b74b34c42693a9f451cd82dd765bcdaffdbf40a0cf84e63075b89d2e52594d26a817a1167e152c5ecff7919955becd5
7
+ data.tar.gz: 0cad9c44bb0c42a160a610ba9d806ee2ffdc40b0b340609d341767a33464773d4a2140c5e1e71a1fd0cbe495b79d7df93341320c435785b8295e9ecbc324a2d3
@@ -1,8 +1,19 @@
1
1
  module Postjob::CLI
2
+ # Run a single job
2
3
  def step
3
4
  run count: 1
4
5
  end
5
6
 
7
+ # Run postjobs.
8
+ #
9
+ # This method runs jobs as they become ready.
10
+ #
11
+ # Parameters:
12
+ #
13
+ # - count=<count> maximum number of jobs to process. Default: unlimited.
14
+ # - fast=<count> reduce waiting time after error (for development only!)
15
+ # - quiet don't show progress.
16
+ #
6
17
  def run(count: nil, fast: false, quiet: false)
7
18
  count = Integer(count) if count
8
19
  Postjob.fast_mode = fast
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postjob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel