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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57d684cb47403557f3d6258972a6a6690b00c121fb08caa3cf1654f96ca97fd0
4
- data.tar.gz: 4617a0c74b609abece12190c5db4d26cba3ebd354be4d1e2448feafb962136de
3
+ metadata.gz: c7c04dddccb926fbd8c26f28d31e9aa6ed098b653b29da7e8711c4452d5ede10
4
+ data.tar.gz: 0d44f122ba5a598006ac7c6d0a002233e82407a4dc371c5b808cc84f2dc28bfc
5
5
  SHA512:
6
- metadata.gz: 2b1317cefd7756e6bf5b7398ca84974d0d3e25cea34028397e64ede29fcf936f06bb3e38d8068ac725ede7e52ca6d63ea526789b83a78da7adca45eb16848948
7
- data.tar.gz: b9e82d240c352842d10aee963c502b1c10449cc10286a5facbbbd591b7edd0c0f01439e9637bb280d0f7995624d782bc111258d838810a06d0d3c5069dd011f5
6
+ metadata.gz: 1efe8207bae407d607719fcb4774421dc0186dbc086325833fd069de62c45085c696c8db208467ad24a5178323fe0835ba76721d5c101bd8c6b55085d2999ca3
7
+ data.tar.gz: 8368430e6da97dca5969caacb139cdc89dfd19b6ca850e07633d9c35f3471975ce503d023e185ecbb051eae3e131eb6e58e9a0838456ec6c50f03ef301f85b84
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetodeploy (1.1.21)
4
+ neetodeploy (1.1.22)
5
5
  aws-sdk-cloudwatchlogs (~> 1.0)
6
6
  aws-sdk-cognitoidentity (~> 1.0)
7
7
  colorize (~> 1.1)
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, { body: common_body.merge(body), format: :json })
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, { body: common_body.merge(body), format: :json })
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, { body: common_body.merge(body), format: :json })
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, { body: common_body.merge(body), format: :json })
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"]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeetoDeploy
4
- VERSION = "1.1.22"
4
+ VERSION = "1.1.23"
5
5
  CLI_API_VERSION = "v1"
6
6
  end
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.22
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 00:00:00.000000000 Z
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