guardship 0.0.52-arm64-darwin
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 +7 -0
- data/LICENSE +21 -0
- data/README.md +21 -0
- data/exe/mothership +44 -0
- data/exe/mothership-darwin-arm64 +0 -0
- data/lib/mothership/version.rb +5 -0
- data/lib/mothership.rb +11 -0
- metadata +51 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 952d2612916d50aaf30e8253ac898a449bdceeb6e2175397cff419297c93a6b6
|
|
4
|
+
data.tar.gz: 11e1bb0184a3738e7f4b84c0aa6257fe518d222e763fc47e31860e79057abb78
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 18cabc04f26fe165e1ee8491985b185ae1cbeaac272e3ef9460b4bc292443d056efbd26534df4a6675ffb707e772709c2f32d2a7ef65de17a6645324777b3bb0
|
|
7
|
+
data.tar.gz: 8870402587da59a96cd38d6c933f537da78aadfb439f8db8c67cf6615ea89a2cff66b2085cdf301d25e1a990033a74417fea1ef7e00e927570de135b6f1220d8
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Abdelkader Boudih
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Mothership Gem
|
|
2
|
+
|
|
3
|
+
Precompiled binary distribution of [Mothership](https://github.com/seuros/mothership) - a process supervisor with HTTP exposure.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
gem install mothership
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
mothership --help
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
For full documentation, see the [main repository](https://github.com/seuros/mothership).
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
MIT
|
data/exe/mothership
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require "rbconfig"
|
|
5
|
+
|
|
6
|
+
module Mothership
|
|
7
|
+
class Launcher
|
|
8
|
+
def self.run
|
|
9
|
+
binary = detect_binary
|
|
10
|
+
exec(binary, *ARGV)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def self.detect_binary
|
|
14
|
+
os = RbConfig::CONFIG["host_os"]
|
|
15
|
+
arch = RbConfig::CONFIG["host_cpu"]
|
|
16
|
+
|
|
17
|
+
platform_os = case os
|
|
18
|
+
when /darwin/i then "darwin"
|
|
19
|
+
when /linux/i then "linux"
|
|
20
|
+
else
|
|
21
|
+
abort "Unsupported OS: #{os}"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
platform_arch = case arch
|
|
25
|
+
when /x86_64|amd64/i then "x86_64"
|
|
26
|
+
when /aarch64|arm64/i then "arm64"
|
|
27
|
+
else
|
|
28
|
+
abort "Unsupported architecture: #{arch}"
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
exe_dir = File.expand_path(__dir__)
|
|
32
|
+
binary_name = "mothership-#{platform_os}-#{platform_arch}"
|
|
33
|
+
binary_path = File.join(exe_dir, binary_name)
|
|
34
|
+
|
|
35
|
+
unless File.exist?(binary_path)
|
|
36
|
+
abort "Binary not found for #{platform_os}-#{platform_arch}: #{binary_path}"
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
binary_path
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
Mothership::Launcher.run
|
|
Binary file
|
data/lib/mothership.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: guardship
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.52
|
|
5
|
+
platform: arm64-darwin
|
|
6
|
+
authors:
|
|
7
|
+
- Abdelkader Boudih
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Process supervisor with HTTP exposure - wrap, monitor, and expose your
|
|
13
|
+
fleet. This gem provides precompiled binaries.
|
|
14
|
+
email:
|
|
15
|
+
- oss@seuros.com
|
|
16
|
+
executables:
|
|
17
|
+
- mothership
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- LICENSE
|
|
22
|
+
- README.md
|
|
23
|
+
- exe/mothership
|
|
24
|
+
- exe/mothership-darwin-arm64
|
|
25
|
+
- lib/mothership.rb
|
|
26
|
+
- lib/mothership/version.rb
|
|
27
|
+
homepage: https://github.com/seuros/mothership
|
|
28
|
+
licenses:
|
|
29
|
+
- MIT
|
|
30
|
+
metadata:
|
|
31
|
+
homepage_uri: https://github.com/seuros/mothership
|
|
32
|
+
source_code_uri: https://github.com/seuros/mothership
|
|
33
|
+
changelog_uri: https://github.com/seuros/mothership/blob/master/CHANGELOG.md
|
|
34
|
+
rdoc_options: []
|
|
35
|
+
require_paths:
|
|
36
|
+
- lib
|
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: 3.0.0
|
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
requirements: []
|
|
48
|
+
rubygems_version: 4.0.1
|
|
49
|
+
specification_version: 4
|
|
50
|
+
summary: Process supervisor with HTTP exposure - precompiled binary distribution
|
|
51
|
+
test_files: []
|