herdst_worker 0.1.7 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3de398e124491be06479567865179d713005b2febcca984cade36bfe0052955f
4
- data.tar.gz: 693dc282a8feb3450ff1f97833185aea1682a467897f075181c2235c14808e78
3
+ metadata.gz: 0a1ae23a9aa07daa5d91b6d45638c6db57b506c9652f1faed6255dc0545d6dfe
4
+ data.tar.gz: fc312df7ea263f0a72d1ef3bac0ee03bef0326f8f7b093105c5c0174a53204b6
5
5
  SHA512:
6
- metadata.gz: 05e0d56aac10f61c9c399471c4a7c356549cf75cf1fa8f223b1b377200ad6b54e2b675f8a20c544eb0f225574a9ba83e039bc46d06a8c7bfbf8c98e2ebbf8f52
7
- data.tar.gz: cbf2e9433d2275e7a8ab4a4651e634f96491d0170fc71346dec6e5ad14238ae54af81bdf5a437c600378ae1601c8d18e617c8eda2d7daf2a9c438f398b8cb2b2
6
+ metadata.gz: c7312f0e0debcd8fe80d8cac228b032689ea826c4c43ffb9457c663a1fcc52e49063cf8d27006da5309a7ad0d71163745069e0761d6f482e97998acea85fe23d
7
+ data.tar.gz: 48590ab2c15f342e70ded837c24997986cf8d2a0d965808325c1c38a7a2f59cd9ab2d4cdf358545f1dd42e7207070192157abe2d6bf6229056c164ff5d52d459
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ args = ARGV
4
+ .flat_map { |s| s.scan(/--?([^=\s]+)(?:=(\S+))?/) }
5
+ .select { |i| i[1] != "" }
6
+
7
+ arg_pair = Hash[ args ]
8
+ application_name = arg_pair["name"]
9
+ application_file = arg_pair["application"] || "application.rb"
10
+ application_path = "#{Dir.pwd}/#{application_file}"
11
+ application_env = arg_pair["env"] || "development"
12
+
13
+ raise "Please specify a name for the application E.g. --name=[name]" unless application_name
14
+
15
+ require "irb"
16
+ require "irb/completion"
17
+ require_relative "../lib/herdst_worker"
18
+
19
+ application_instance = HerdstWorker::Application.new(application_env, application_name, false)
20
+
21
+ require_relative application_path
22
+
23
+ ARGV.clear
24
+ IRB.start
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St
@@ -225,11 +225,13 @@ email:
225
225
  - devops@herd.st
226
226
  executables:
227
227
  - herdst_worker
228
+ - herdst_worker_console
228
229
  extensions: []
229
230
  extra_rdoc_files: []
230
231
  files:
231
232
  - Rakefile
232
233
  - bin/herdst_worker
234
+ - bin/herdst_worker_console
233
235
  - lib/herdst_worker.rb
234
236
  - lib/herdst_worker/adapters/database.rb
235
237
  - lib/herdst_worker/adapters/facade.rb