overmind 0.1.0-x86_64-freebsd → 0.1.1-x86_64-freebsd
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/overmind/version.rb +1 -1
- metadata +2 -67
- data/lib/overmind/cli.rb +0 -93
- data/libexec/prebuilt-tmux/bin/event_rpcgen.py +0 -1925
- data/libexec/prebuilt-tmux/bin/tmux +0 -0
- data/libexec/prebuilt-tmux/include/evdns.h +0 -45
- data/libexec/prebuilt-tmux/include/event.h +0 -83
- data/libexec/prebuilt-tmux/include/event2/buffer.h +0 -1077
- data/libexec/prebuilt-tmux/include/event2/buffer_compat.h +0 -116
- data/libexec/prebuilt-tmux/include/event2/bufferevent.h +0 -1024
- data/libexec/prebuilt-tmux/include/event2/bufferevent_compat.h +0 -104
- data/libexec/prebuilt-tmux/include/event2/bufferevent_ssl.h +0 -134
- data/libexec/prebuilt-tmux/include/event2/bufferevent_struct.h +0 -116
- data/libexec/prebuilt-tmux/include/event2/dns.h +0 -751
- data/libexec/prebuilt-tmux/include/event2/dns_compat.h +0 -358
- data/libexec/prebuilt-tmux/include/event2/dns_struct.h +0 -80
- data/libexec/prebuilt-tmux/include/event2/event-config.h +0 -570
- data/libexec/prebuilt-tmux/include/event2/event.h +0 -1672
- data/libexec/prebuilt-tmux/include/event2/event_compat.h +0 -230
- data/libexec/prebuilt-tmux/include/event2/event_struct.h +0 -180
- data/libexec/prebuilt-tmux/include/event2/http.h +0 -1192
- data/libexec/prebuilt-tmux/include/event2/http_compat.h +0 -94
- data/libexec/prebuilt-tmux/include/event2/http_struct.h +0 -152
- data/libexec/prebuilt-tmux/include/event2/keyvalq_struct.h +0 -80
- data/libexec/prebuilt-tmux/include/event2/listener.h +0 -192
- data/libexec/prebuilt-tmux/include/event2/rpc.h +0 -626
- data/libexec/prebuilt-tmux/include/event2/rpc_compat.h +0 -61
- data/libexec/prebuilt-tmux/include/event2/rpc_struct.h +0 -114
- data/libexec/prebuilt-tmux/include/event2/tag.h +0 -146
- data/libexec/prebuilt-tmux/include/event2/tag_compat.h +0 -49
- data/libexec/prebuilt-tmux/include/event2/thread.h +0 -253
- data/libexec/prebuilt-tmux/include/event2/util.h +0 -888
- data/libexec/prebuilt-tmux/include/event2/visibility.h +0 -67
- data/libexec/prebuilt-tmux/include/evhttp.h +0 -45
- data/libexec/prebuilt-tmux/include/evrpc.h +0 -45
- data/libexec/prebuilt-tmux/include/evutil.h +0 -39
- data/libexec/prebuilt-tmux/include/utf8proc.h +0 -743
- data/libexec/prebuilt-tmux/lib/libevent-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent.la +0 -41
- data/libexec/prebuilt-tmux/lib/libevent_core-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_core.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_core.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent_core.la +0 -41
- data/libexec/prebuilt-tmux/lib/libevent_extra-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_extra.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_extra.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent_extra.la +0 -41
- data/libexec/prebuilt-tmux/lib/libevent_openssl-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_openssl.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_openssl.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent_openssl.la +0 -41
- data/libexec/prebuilt-tmux/lib/libevent_pthreads-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_pthreads.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_pthreads.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent_pthreads.la +0 -41
- data/libexec/prebuilt-tmux/lib/libutf8proc.3.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libutf8proc.a +0 -0
- data/libexec/prebuilt-tmux/lib/libutf8proc.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_core.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_extra.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_openssl.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_pthreads.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libutf8proc.pc +0 -10
- data/libexec/prebuilt-tmux/share/man/man1/tmux.1 +0 -7242
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ca18900b68d0f4e42aee2277b990a29bff1daf4bcde16844ac178e71d6f9063
|
4
|
+
data.tar.gz: 95c355514f27a15d6dbb02bd2e76508304eaed2740f24dacf0093a9b9bf41bf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d50e5f3acf8710f544426c60e4db28eb35937692d548e9611544243828e14ef1309acb247131b87283cbfd175fe3152e1b4b1a54667a3688ad6dbd764450b94
|
7
|
+
data.tar.gz: bfa04316c52218dec8f9beb7c5ce5e380db39e8938ca8de1a54fa7196b06bbc40b9ab6e1bf35fa13bc22db13ee7635f3adcbebd46ee78663180829c45cd9e745
|
data/lib/overmind/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: overmind
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: x86_64-freebsd
|
6
6
|
authors:
|
7
7
|
- prog-supdex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -63,73 +63,8 @@ files:
|
|
63
63
|
- LICENSE.txt
|
64
64
|
- bin/overmind
|
65
65
|
- lib/overmind.rb
|
66
|
-
- lib/overmind/cli.rb
|
67
66
|
- lib/overmind/version.rb
|
68
67
|
- libexec/overmind
|
69
|
-
- libexec/prebuilt-tmux/bin/event_rpcgen.py
|
70
|
-
- libexec/prebuilt-tmux/bin/tmux
|
71
|
-
- libexec/prebuilt-tmux/include/evdns.h
|
72
|
-
- libexec/prebuilt-tmux/include/event.h
|
73
|
-
- libexec/prebuilt-tmux/include/event2/buffer.h
|
74
|
-
- libexec/prebuilt-tmux/include/event2/buffer_compat.h
|
75
|
-
- libexec/prebuilt-tmux/include/event2/bufferevent.h
|
76
|
-
- libexec/prebuilt-tmux/include/event2/bufferevent_compat.h
|
77
|
-
- libexec/prebuilt-tmux/include/event2/bufferevent_ssl.h
|
78
|
-
- libexec/prebuilt-tmux/include/event2/bufferevent_struct.h
|
79
|
-
- libexec/prebuilt-tmux/include/event2/dns.h
|
80
|
-
- libexec/prebuilt-tmux/include/event2/dns_compat.h
|
81
|
-
- libexec/prebuilt-tmux/include/event2/dns_struct.h
|
82
|
-
- libexec/prebuilt-tmux/include/event2/event-config.h
|
83
|
-
- libexec/prebuilt-tmux/include/event2/event.h
|
84
|
-
- libexec/prebuilt-tmux/include/event2/event_compat.h
|
85
|
-
- libexec/prebuilt-tmux/include/event2/event_struct.h
|
86
|
-
- libexec/prebuilt-tmux/include/event2/http.h
|
87
|
-
- libexec/prebuilt-tmux/include/event2/http_compat.h
|
88
|
-
- libexec/prebuilt-tmux/include/event2/http_struct.h
|
89
|
-
- libexec/prebuilt-tmux/include/event2/keyvalq_struct.h
|
90
|
-
- libexec/prebuilt-tmux/include/event2/listener.h
|
91
|
-
- libexec/prebuilt-tmux/include/event2/rpc.h
|
92
|
-
- libexec/prebuilt-tmux/include/event2/rpc_compat.h
|
93
|
-
- libexec/prebuilt-tmux/include/event2/rpc_struct.h
|
94
|
-
- libexec/prebuilt-tmux/include/event2/tag.h
|
95
|
-
- libexec/prebuilt-tmux/include/event2/tag_compat.h
|
96
|
-
- libexec/prebuilt-tmux/include/event2/thread.h
|
97
|
-
- libexec/prebuilt-tmux/include/event2/util.h
|
98
|
-
- libexec/prebuilt-tmux/include/event2/visibility.h
|
99
|
-
- libexec/prebuilt-tmux/include/evhttp.h
|
100
|
-
- libexec/prebuilt-tmux/include/evrpc.h
|
101
|
-
- libexec/prebuilt-tmux/include/evutil.h
|
102
|
-
- libexec/prebuilt-tmux/include/utf8proc.h
|
103
|
-
- libexec/prebuilt-tmux/lib/libevent-2.1.7.dylib
|
104
|
-
- libexec/prebuilt-tmux/lib/libevent.a
|
105
|
-
- libexec/prebuilt-tmux/lib/libevent.dylib
|
106
|
-
- libexec/prebuilt-tmux/lib/libevent.la
|
107
|
-
- libexec/prebuilt-tmux/lib/libevent_core-2.1.7.dylib
|
108
|
-
- libexec/prebuilt-tmux/lib/libevent_core.a
|
109
|
-
- libexec/prebuilt-tmux/lib/libevent_core.dylib
|
110
|
-
- libexec/prebuilt-tmux/lib/libevent_core.la
|
111
|
-
- libexec/prebuilt-tmux/lib/libevent_extra-2.1.7.dylib
|
112
|
-
- libexec/prebuilt-tmux/lib/libevent_extra.a
|
113
|
-
- libexec/prebuilt-tmux/lib/libevent_extra.dylib
|
114
|
-
- libexec/prebuilt-tmux/lib/libevent_extra.la
|
115
|
-
- libexec/prebuilt-tmux/lib/libevent_openssl-2.1.7.dylib
|
116
|
-
- libexec/prebuilt-tmux/lib/libevent_openssl.a
|
117
|
-
- libexec/prebuilt-tmux/lib/libevent_openssl.dylib
|
118
|
-
- libexec/prebuilt-tmux/lib/libevent_openssl.la
|
119
|
-
- libexec/prebuilt-tmux/lib/libevent_pthreads-2.1.7.dylib
|
120
|
-
- libexec/prebuilt-tmux/lib/libevent_pthreads.a
|
121
|
-
- libexec/prebuilt-tmux/lib/libevent_pthreads.dylib
|
122
|
-
- libexec/prebuilt-tmux/lib/libevent_pthreads.la
|
123
|
-
- libexec/prebuilt-tmux/lib/libutf8proc.3.dylib
|
124
|
-
- libexec/prebuilt-tmux/lib/libutf8proc.a
|
125
|
-
- libexec/prebuilt-tmux/lib/libutf8proc.dylib
|
126
|
-
- libexec/prebuilt-tmux/lib/pkgconfig/libevent.pc
|
127
|
-
- libexec/prebuilt-tmux/lib/pkgconfig/libevent_core.pc
|
128
|
-
- libexec/prebuilt-tmux/lib/pkgconfig/libevent_extra.pc
|
129
|
-
- libexec/prebuilt-tmux/lib/pkgconfig/libevent_openssl.pc
|
130
|
-
- libexec/prebuilt-tmux/lib/pkgconfig/libevent_pthreads.pc
|
131
|
-
- libexec/prebuilt-tmux/lib/pkgconfig/libutf8proc.pc
|
132
|
-
- libexec/prebuilt-tmux/share/man/man1/tmux.1
|
133
68
|
- overmind.gemspec
|
134
69
|
homepage: https://github.com/DarthSim/overmind
|
135
70
|
licenses:
|
data/lib/overmind/cli.rb
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Overmind
|
4
|
-
# Command-line interface for running golang library Overmind
|
5
|
-
# It ensures that the necessary dependencies, such as tmux, are present
|
6
|
-
# and runs Overmind with any provided arguments.
|
7
|
-
class CLI
|
8
|
-
SUPPORTED_OS_REGEX = /darwin|linux|bsd/i
|
9
|
-
# Path to the library's executable files
|
10
|
-
LIBRARY_PATH = File.expand_path("#{File.dirname(__FILE__)}/../../libexec")
|
11
|
-
OVERMIND_PATH = "#{LIBRARY_PATH}/overmind"
|
12
|
-
TMUX_FOLDER_PATH = "#{LIBRARY_PATH}/prebuilt-tmux/bin"
|
13
|
-
TMUX_PATH = "#{TMUX_FOLDER_PATH}/tmux"
|
14
|
-
|
15
|
-
def run(args = [])
|
16
|
-
os_validate!
|
17
|
-
validate_tmux_present!
|
18
|
-
validate_overmind_present!
|
19
|
-
|
20
|
-
# Ensures arguments are properly quoted if they contain spaces
|
21
|
-
args = args.map { |x| x.include?(" ") ? "'#{x}'" : x }
|
22
|
-
|
23
|
-
# Use prebuild tmux if found
|
24
|
-
path_with_tmux = File.exist?(TMUX_PATH) ? "#{ENV["PATH"]}:#{TMUX_FOLDER_PATH}" : ENV["PATH"]
|
25
|
-
|
26
|
-
# Spawns the Overmind process with modified PATH if necessary
|
27
|
-
pid = spawn({"PATH" => path_with_tmux}, "#{OVERMIND_PATH} #{args.join(" ")}")
|
28
|
-
|
29
|
-
Process.wait(pid)
|
30
|
-
|
31
|
-
$?.exitstatus
|
32
|
-
end
|
33
|
-
|
34
|
-
private
|
35
|
-
|
36
|
-
# Checks if the current OS is supported based on a regex match
|
37
|
-
def os_supported?
|
38
|
-
RUBY_PLATFORM.match?(SUPPORTED_OS_REGEX)
|
39
|
-
end
|
40
|
-
|
41
|
-
# Checks if tmux is installed either globally or as a prebuilt binary
|
42
|
-
def tmux_installed?
|
43
|
-
system("which tmux") || File.exist?(TMUX_PATH)
|
44
|
-
end
|
45
|
-
|
46
|
-
# Checks if the Overmind executable is present
|
47
|
-
def overmind_installed?
|
48
|
-
File.exist?(OVERMIND_PATH)
|
49
|
-
end
|
50
|
-
|
51
|
-
# Validates the operating system and aborts with an error message if unsupported
|
52
|
-
def os_validate!
|
53
|
-
return if os_supported?
|
54
|
-
|
55
|
-
abort_with_message("Error: This gem supports Linux, *BSD, and macOS only.")
|
56
|
-
end
|
57
|
-
|
58
|
-
# Validates the presence of tmux and aborts with an error message if not found
|
59
|
-
def validate_tmux_present!
|
60
|
-
return if tmux_installed?
|
61
|
-
|
62
|
-
abort_with_message(<<~MSG)
|
63
|
-
Error: tmux not found. Please ensure tmux is installed and available in PATH.
|
64
|
-
If tmux is not installed, you can usually install it using your package manager. For example:
|
65
|
-
|
66
|
-
# For Ubuntu/Debian
|
67
|
-
sudo apt-get install tmux
|
68
|
-
#{" "}
|
69
|
-
# For macOS
|
70
|
-
brew install tmux
|
71
|
-
#{" "}
|
72
|
-
# For FreeBSD
|
73
|
-
sudo pkg install tmux
|
74
|
-
|
75
|
-
Installation commands might vary based on your operating system and its version.#{" "}
|
76
|
-
Please consult your system's package management documentation for the most accurate instructions.
|
77
|
-
MSG
|
78
|
-
end
|
79
|
-
|
80
|
-
# Validates the presence of Overmind and aborts with an error message if not found
|
81
|
-
def validate_overmind_present!
|
82
|
-
return if overmind_installed?
|
83
|
-
|
84
|
-
abort_with_message("Error: Invalid platform. Overmind wasn't built for #{RUBY_PLATFORM}")
|
85
|
-
end
|
86
|
-
|
87
|
-
# Aborts execution with a given error message
|
88
|
-
def abort_with_message(message)
|
89
|
-
warn "\e[31m#{message}\e[0m"
|
90
|
-
exit 1
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|