runify 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/runify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 699fbb15201cfa343ef41caa3eba410e9013d320
|
4
|
+
data.tar.gz: 1f39c543383d8742c50b990eb4ea7db4bf8e2488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e424a4a1e4ed42bc812ac0e01c447aa1303646292480afe07512224576a70039ff328cdcc5fd12b5179932c344d49768206d43f6fd4a664b23a6c094b7f884b8
|
7
|
+
data.tar.gz: e48677757f85bea2d4c70661dd20ab397a182ede6965b1aa85cfdeafc0055a1b49aa48c9fcd8725a6a3611fd03948bcaacd4c671089bef29dda1db3a357e762f
|
data/README.md
CHANGED
@@ -36,6 +36,7 @@ Once this method returns, the service has completely terminated.
|
|
36
36
|
#### *restart*
|
37
37
|
|
38
38
|
The _restart_ method is nothing more than a shortcut to shutdown and startup:
|
39
|
+
|
39
40
|
```ruby
|
40
41
|
def restart
|
41
42
|
shutdown
|
@@ -49,6 +50,7 @@ Any class that includes the runify module should check the *@stop* instance vari
|
|
49
50
|
Runify will set @stop to _true_ to indicate execution should end and the _run_ method should return when a shutdown is requested.
|
50
51
|
|
51
52
|
A typical _run_ method will usually be implemented as such:
|
53
|
+
|
52
54
|
```ruby
|
53
55
|
def run
|
54
56
|
update until @stop
|
data/lib/runify/version.rb
CHANGED