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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f81fc2f58388142abc41d1cd0eb5768ea69c1e26b46e2c87ee4f859f19b4d6d4
4
- data.tar.gz: 754e4510903fb877ccd9cdea055c0b0b4fef87697c0250ebb9a0d9f42cd18fb5
3
+ metadata.gz: 918adb2b2275f38d3b22eb926a5da3b021f667d4a7290a3b0b1d9ea7bb56a2c2
4
+ data.tar.gz: 03c557694d0a91f78f25dc4689f2b99c46b626ebeed5816f8e2e0346e29dd482
5
5
  SHA512:
6
- metadata.gz: d2bf3cf91868d4c73f31bebe07c9a87d43b6419ed1332410d757f5fb13598a3a6af982311b3c33f654aece52bca325f0ea4d8c9c3fde752c0997b631660b4eb9
7
- data.tar.gz: 0f6f9fe487f42ce26d709ce88bb01426433f4e985c09e98d88c5f034824c290b0fa974e1e9e9d307c9c339ca888cac06073874661c7a7e6abb36407729430a99
6
+ metadata.gz: 2053d076158df45b723855cee991d47852efb18b34ace65e24005798c7d9d1f1ffff126d1fc7409ba3554e4bfa3bf9855c13dfec5bcfa14ac79aac57d9409acf
7
+ data.tar.gz: 5622bc3069e029485876c7329bd0658b3bf7b3c4b265a40e51421bab04e0b898367f91c864dbe7caf1de93b317e9ba1fcd4787971fd4dc9e28528bf4f14a8df8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- process_bot (0.1.1)
4
+ process_bot (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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!
@@ -1,3 +1,3 @@
1
1
  module ProcessBot
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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|exe|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
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.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