process_bot 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/exe/process_bot +36 -0
- data/lib/process_bot/version.rb +1 -1
- data/process_bot.gemspec +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 918adb2b2275f38d3b22eb926a5da3b021f667d4a7290a3b0b1d9ea7bb56a2c2
|
4
|
+
data.tar.gz: 03c557694d0a91f78f25dc4689f2b99c46b626ebeed5816f8e2e0346e29dd482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2053d076158df45b723855cee991d47852efb18b34ace65e24005798c7d9d1f1ffff126d1fc7409ba3554e4bfa3bf9855c13dfec5bcfa14ac79aac57d9409acf
|
7
|
+
data.tar.gz: 5622bc3069e029485876c7329bd0658b3bf7b3c4b265a40e51421bab04e0b898367f91c864dbe7caf1de93b317e9ba1fcd4787971fd4dc9e28528bf4f14a8df8
|
data/Gemfile.lock
CHANGED
data/exe/process_bot
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "pathname"
|
4
|
+
|
5
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
6
|
+
Pathname.new(__FILE__).realpath)
|
7
|
+
|
8
|
+
require "bundler/setup"
|
9
|
+
require "optparse"
|
10
|
+
require "string-cases"
|
11
|
+
require_relative "../lib/process_bot"
|
12
|
+
|
13
|
+
options = ProcessBot::Options.new
|
14
|
+
argv_i = 0
|
15
|
+
|
16
|
+
while argv_i < ARGV.length
|
17
|
+
arg = ARGV.fetch(argv_i)
|
18
|
+
|
19
|
+
if (match = arg.match(/\A--(.+)\Z/))
|
20
|
+
key = match[1].tr("-", "_").to_sym
|
21
|
+
argv_i += 1
|
22
|
+
value = ARGV.fetch(argv_i)
|
23
|
+
|
24
|
+
options.set(key, value)
|
25
|
+
else
|
26
|
+
raise "Unknown option: #{arg}"
|
27
|
+
end
|
28
|
+
|
29
|
+
argv_i += 1
|
30
|
+
end
|
31
|
+
|
32
|
+
pp options.options
|
33
|
+
|
34
|
+
ProcessBot::Process
|
35
|
+
.new(options)
|
36
|
+
.execute!
|
data/lib/process_bot/version.rb
CHANGED
data/process_bot.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
25
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
26
26
|
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|
|
27
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
28
28
|
end
|
29
29
|
end
|
30
30
|
spec.bindir = "exe"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_bot
|
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
|
- kaspernj
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description: Run and control processes.
|
70
70
|
email:
|
71
71
|
- k@spernj.org
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- process_bot
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
@@ -81,6 +82,7 @@ files:
|
|
81
82
|
- LICENSE.txt
|
82
83
|
- README.md
|
83
84
|
- Rakefile
|
85
|
+
- exe/process_bot
|
84
86
|
- lib/process_bot.rb
|
85
87
|
- lib/process_bot/capistrano.rb
|
86
88
|
- lib/process_bot/capistrano/puma.rake
|