neetodeploy 1.1.22 → 1.1.23
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 +4 -4
- data/Gemfile.lock +1 -1
- data/exe/console +0 -0
- data/lib/neeto_deploy/cli/session.rb +14 -4
- data/lib/neeto_deploy/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7c04dddccb926fbd8c26f28d31e9aa6ed098b653b29da7e8711c4452d5ede10
|
|
4
|
+
data.tar.gz: 0d44f122ba5a598006ac7c6d0a002233e82407a4dc371c5b808cc84f2dc28bfc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1efe8207bae407d607719fcb4774421dc0186dbc086325833fd069de62c45085c696c8db208467ad24a5178323fe0835ba76721d5c101bd8c6b55085d2999ca3
|
|
7
|
+
data.tar.gz: 8368430e6da97dca5969caacb139cdc89dfd19b6ca850e07633d9c35f3471975ce503d023e185ecbb051eae3e131eb6e58e9a0838456ec6c50f03ef301f85b84
|
data/Gemfile.lock
CHANGED
data/exe/console
ADDED
|
Binary file
|
|
@@ -19,19 +19,19 @@ module NeetoDeploy
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def send_get_request(url, body)
|
|
22
|
-
HTTParty.get(url,
|
|
22
|
+
HTTParty.get(url, headers:, body:, format: :json)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def send_post_request(url, body)
|
|
26
|
-
HTTParty.post(url,
|
|
26
|
+
HTTParty.post(url, headers:, body:, format: :json)
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def send_patch_request(url, body)
|
|
30
|
-
HTTParty.patch(url,
|
|
30
|
+
HTTParty.patch(url, headers:, body:, format: :json)
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def send_delete_request(url, body)
|
|
34
|
-
HTTParty.delete(url,
|
|
34
|
+
HTTParty.delete(url, headers:, body:, format: :json)
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def common_body
|
|
@@ -41,6 +41,16 @@ module NeetoDeploy
|
|
|
41
41
|
raise Error.new("Unable to retrieve session info. Try logging in again.")
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
def session_token
|
|
45
|
+
JSON.parse(File.read(CLI_SESSION_STORE_FILE_PATH))["session_token"]
|
|
46
|
+
rescue
|
|
47
|
+
raise Error.new("Unable to retrieve session token. Try logging in again.")
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def headers
|
|
51
|
+
{ "Session-Token" => session_token }
|
|
52
|
+
end
|
|
53
|
+
|
|
44
54
|
def os
|
|
45
55
|
@os ||= (
|
|
46
56
|
host_os = RbConfig::CONFIG["host_os"]
|
data/lib/neeto_deploy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: neetodeploy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Subin Siby
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dotenv
|
|
@@ -168,6 +168,7 @@ description: Manage neetoDeploy apps with CLI
|
|
|
168
168
|
email:
|
|
169
169
|
- subin.siby@bigbinary.com
|
|
170
170
|
executables:
|
|
171
|
+
- console
|
|
171
172
|
- neetodeploy
|
|
172
173
|
extensions: []
|
|
173
174
|
extra_rdoc_files: []
|
|
@@ -175,6 +176,7 @@ files:
|
|
|
175
176
|
- ".ruby-version"
|
|
176
177
|
- Gemfile
|
|
177
178
|
- Gemfile.lock
|
|
179
|
+
- exe/console
|
|
178
180
|
- exe/console-linux-amd64
|
|
179
181
|
- exe/console-linux-arm64
|
|
180
182
|
- exe/neetodeploy
|