neetodeploy 1.1.26 → 1.3.0

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: 47ad21898f81d64148aa108316a77f64b143fe49f3d3c922a1e77ce6c2c22293
4
- data.tar.gz: 9edf8e55e2594f7e0ff41df9919b38d9df2d8023316e5d3156b889efbe4e6e60
3
+ metadata.gz: 066764fd69c2ebdf5ae2cc102d3042a82102d84ae6f4705d3e915197bfa5cc4d
4
+ data.tar.gz: 18e9492f699f64c89f4553c94d2a835ee952fb2be97c24402561876a873ec076
5
5
  SHA512:
6
- metadata.gz: 1be748f7bae2c04057b42f971caa1b2d7a4b2ae945263d5709a183faf5cc51089be6ab78e9d7bb97682651ef81453d5d28d92f9b58381e680ec706c41974f977
7
- data.tar.gz: 84a68d7b3cc97a14698a7433d227a51e7bffbb7a3f2fb5a08a6e056d3d86e1ec9d653a9d6deb65f70dd1adc7a11b8f3348813b5286a3575a152f308c0a5431eb
6
+ metadata.gz: 6964b8d02a0a1d54c17b76c27bfee58507af9a71bf224e287a049e8667ea4f5b37584e92b82bfcc6da483ba06e8664ccbd140e02cac31070f90c9d8b472ef508
7
+ data.tar.gz: 889c06ac7ee29e15f71a0c03845d21d1e278077950eab70c1ff0ec8cacf6bab921575fd2982a4eb3f302fde18df4d025b76c1fbdcd5b1f14e6ab4e22a149b98b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetodeploy (1.1.25)
4
+ neetodeploy (1.3.0)
5
5
  base64
6
6
  bigdecimal
7
7
  colorize
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "thor"
4
+ require "json"
5
+
6
+ require_relative "../session"
7
+ require_relative "./constants"
8
+
9
+ module NeetoDeploy
10
+ class CLI
11
+ module Apps
12
+ class Base < CLI::Base
13
+ include Constants
14
+ include Session
15
+
16
+ attr_reader :app_slug
17
+
18
+ def initialize(app_slug)
19
+ super()
20
+ @app_slug = app_slug
21
+ end
22
+
23
+ def process!
24
+ ui.execute_with_loading("Fetching app details...") do
25
+ @response = send_get_request(app_details_url(app_slug), {})
26
+ end
27
+
28
+ ui.error(@response["error"] || @response.message) and return unless @response.success?
29
+
30
+ parsed_response = JSON.parse(@response.body)
31
+ app_data = parsed_response["app"] || parsed_response
32
+ ui.info(JSON.pretty_generate(app_data))
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NeetoDeploy
4
+ class CLI
5
+ module Apps
6
+ module Constants
7
+ NEETO_DEPLOY_CLI_V2_API_BASE_URL = "#{NEETO_DEPLOY_HOST}/api/cli/v2".freeze
8
+ NEETO_DEPLOY_CLI_API_V2_APPS_URL = "#{NEETO_DEPLOY_CLI_V2_API_BASE_URL}/apps".freeze
9
+
10
+ def app_details_url(app_slug)
11
+ "#{NEETO_DEPLOY_CLI_API_V2_APPS_URL}/#{app_slug}"
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -11,6 +11,7 @@ module NeetoDeploy
11
11
  require_relative "cli/login/base"
12
12
  require_relative "cli/exec/base"
13
13
  require_relative "cli/logs/base"
14
+ require_relative "cli/apps/base"
14
15
  require_relative "cli/env/commands"
15
16
  require_relative "cli/redis/commands"
16
17
  require_relative "cli/pg/commands"
@@ -50,6 +51,12 @@ module NeetoDeploy
50
51
  CLI::Logs::Base.new(options[:app], options[:process_type]).process!
51
52
  end
52
53
 
54
+ desc "apps", "Show app details"
55
+ option :app, type: :string, aliases: "-a", required: true, desc: "App slug"
56
+ def apps
57
+ CLI::Apps::Base.new(options[:app]).process!
58
+ end
59
+
53
60
  desc "redis", "Manage redis addons"
54
61
  subcommand "redis", Redis::Commands
55
62
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeetoDeploy
4
- VERSION = "1.1.26"
4
+ VERSION = "1.3.0"
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.26
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin Siby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-16 00:00:00.000000000 Z
11
+ date: 2026-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -228,6 +228,8 @@ files:
228
228
  - lib/neeto_deploy/cli/addon/constants.rb
229
229
  - lib/neeto_deploy/cli/addon/info.rb
230
230
  - lib/neeto_deploy/cli/addon/scheduled_exports_settings.rb
231
+ - lib/neeto_deploy/cli/apps/base.rb
232
+ - lib/neeto_deploy/cli/apps/constants.rb
231
233
  - lib/neeto_deploy/cli/autoscaling_config/commands.rb
232
234
  - lib/neeto_deploy/cli/autoscaling_config/constants.rb
233
235
  - lib/neeto_deploy/cli/autoscaling_config/list.rb
@@ -283,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
283
285
  - !ruby/object:Gem::Version
284
286
  version: '0'
285
287
  requirements: []
286
- rubygems_version: 3.5.10
288
+ rubygems_version: 3.4.19
287
289
  signing_key:
288
290
  specification_version: 4
289
291
  summary: CLI for neetoDeploy