herdst_worker 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/herdst_worker_console +24 -0
- data/lib/herdst_worker/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a1ae23a9aa07daa5d91b6d45638c6db57b506c9652f1faed6255dc0545d6dfe
|
4
|
+
data.tar.gz: fc312df7ea263f0a72d1ef3bac0ee03bef0326f8f7b093105c5c0174a53204b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|