herdst_worker 0.1.1 → 0.1.2
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/bin/herdst_worker +9 -6
- data/lib/herdst_worker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86111f7971f9fa7a217a510a1f9dbf0f8dbb8ba1a570aceba28fffe5fffed0b6
|
4
|
+
data.tar.gz: 833aeb05a98d3b5eca6615727f382d81bc020ad438dd56c87dd9f8313e52eef4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cf7894ad1ac6bb37a005ad40b8a38002b97c0532ae8ee5ec67746f1fc4ceb8a5736dc1d6abba7b9d5f5a2d0bcec2ac77f14e91aeb00b431382645fca033b8e4
|
7
|
+
data.tar.gz: c4d8231d2cc47e2b0e03434623b51b3189127204e616ea13fef1c6d01cd7b9eef130dcc10943ed770922a84d440b920c70f2926b7a9f6d05829946fe013c36c8
|
data/bin/herdst_worker
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
args =
|
3
|
+
args = ARGV
|
4
|
+
.flat_map { |s| s.scan(/--?([^=\s]+)(?:=(\S+))?/) }
|
5
|
+
.select { |i| i[1] != "" }
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
+
arg_pair = Hash[ args ]
|
8
|
+
application_name = arg_pair["name"]
|
9
|
+
application_file = arg_pair["application"] || "application.rb"
|
7
10
|
application_path = "#{Dir.pwd}/#{application_file}"
|
8
|
-
application_env =
|
9
|
-
queue_enabled =
|
11
|
+
application_env = arg_pair["env"] || "production"
|
12
|
+
queue_enabled = arg_pair["queue_enabled"] == "false" ? false : true
|
10
13
|
|
11
|
-
raise "Please specify a name for the application E.g. --name=[name]" unless application_name
|
14
|
+
raise "Please specify a name for the application E.g. --name=[name]" unless application_name
|
12
15
|
|
13
16
|
require_relative "../lib/herdst_worker"
|
14
17
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: herdst_worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Herd.St
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|