just_one_lock 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/README.md +9 -2
- data/bin/just_one_lock +2 -3
- data/lib/just_one_lock/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: e9b0f763cb5c4313838cbea3909041d1e817bffa
|
4
|
+
data.tar.gz: 359882f0f8e61bdd0fef8a150c323ffaa9643835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 662f1b3a39ac381b35b85dc15271d72e6623ded25176e75675802f85bfc086a27b779786c111cd4b11844eaff25ff0f8945f797f9a672ab2b4e81992d9eacce4
|
7
|
+
data.tar.gz: e5abae5eeda616a6d0b8b5d61d9b92b7f33a6783619f7622e6d04d12a63eb22c01258208698bb3c42df0b4648146b4953650b5e2d1e755f6cab01afa9c578d24
|
data/README.md
CHANGED
data/bin/just_one_lock
CHANGED
@@ -19,8 +19,8 @@ pre do |global_options, command, options, args|
|
|
19
19
|
$command_to_run = args.first
|
20
20
|
end
|
21
21
|
|
22
|
+
desc 'Execute system command using blocking lock'
|
22
23
|
command :blocking do |c|
|
23
|
-
c.desc 'Execute system command using blocking lock'
|
24
24
|
c.flag [:t,:timeout], desc: 'Timeout in seconds'
|
25
25
|
|
26
26
|
c.action do |global_options, options, args|
|
@@ -38,9 +38,8 @@ command :blocking do |c|
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
desc 'Execute system command'
|
41
42
|
command :non_blocking do |c|
|
42
|
-
c.desc 'Execute system command'
|
43
|
-
|
44
43
|
c.action do |global_options, options, args|
|
45
44
|
JustOneLock::NonBlocking.prevent_multiple_executions($lock_dir, $scope, output: $stdout) do
|
46
45
|
system $command_to_run
|