neetodeploy 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a03891d8e2bb57d65d109837071d4d416a09faecf35059872e9ea727a654c325
4
- data.tar.gz: efa6c8a43607656b48c53e5412facee9d78473ecb49438ac9d4087fc7e5dd607
3
+ metadata.gz: c89f6daf95ba95dadcfcbfdf897ff3b9642003da42240d53a566549ab7c80039
4
+ data.tar.gz: 890eb532d959f1807b315d8fde953bbbe0590bca1b13abfd3f743a77d238b768
5
5
  SHA512:
6
- metadata.gz: fa4de530dd6a04af91879d23a6e1f1aa9142cf2beea23a2a14f0eff49b273f8e6a3f2b4bb23a16db06715c7cc0eefb4a87bd7978f6c813a9f9e92f629f659f2b
7
- data.tar.gz: b574994b575a2480ad621318ffae3bc6619fc6c85409f97e17a7e30e693431104ea751a582c522c371ce7e93147d5eb9fb48a7fbe18ea26f86b5af7ffb7f6194
6
+ metadata.gz: c492b22e65f9e9f4eeccee4f0720346e94a42885efda1086bad9644414a216aea06dec6881b6764ed011867bb76a1132065c6fd77772e70d001c82e0950de4ac
7
+ data.tar.gz: ef3ca43ae3235150ca96ebbd5685ec744774ececa07bc8cf9c35f1267f641200de666f2afae80a28f291afcd214cec21979a158186de519c13ed141fdf405491
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetodeploy (1.0.10)
4
+ neetodeploy (1.1.1)
5
5
  dotenv (~> 2.8.1)
6
6
  httparty (~> 0.21.0)
7
7
  launchy (~> 2.5.0)
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "thor"
4
4
  require_relative "./set"
5
+ require_relative "./get"
5
6
 
6
7
  module NeetoDeploy
7
8
  class CLI
@@ -15,6 +16,13 @@ module NeetoDeploy
15
16
  def set
16
17
  Set.new(options).run
17
18
  end
19
+
20
+ desc "get", "Get redis config"
21
+ option :addon_name, type: :string, aliases: "-n", required: true, desc: "Addon name"
22
+ option :key, type: :string, aliases: "-k", required: true, desc: "CONFIG name"
23
+ def get
24
+ Get.new(options).run
25
+ end
18
26
  end
19
27
  end
20
28
  end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "thor"
4
+ require_relative "../session"
5
+ require_relative "./constants"
6
+
7
+ module NeetoDeploy
8
+ class CLI
9
+ module Redis
10
+ class Get < CLI::Base
11
+ include Constants
12
+ include Session
13
+
14
+ attr_reader :addon_name, :key
15
+
16
+ def initialize(options)
17
+ super()
18
+ @addon_name = options[:addon_name]
19
+ @key = options[:key]
20
+ end
21
+
22
+ def run
23
+ response = send_patch_request(
24
+ config_vars_url, {
25
+ addon_name:,
26
+ command: "CONFIG get #{key}"
27
+ }
28
+ )
29
+
30
+ ui.error(response) and return unless response.success?
31
+
32
+ ui.success(response["message"])
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeetoDeploy
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin Siby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-17 00:00:00.000000000 Z
11
+ date: 2023-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -121,6 +121,7 @@ files:
121
121
  - lib/neeto_deploy/cli/logs/base.rb
122
122
  - lib/neeto_deploy/cli/redis/commands.rb
123
123
  - lib/neeto_deploy/cli/redis/constants.rb
124
+ - lib/neeto_deploy/cli/redis/get.rb
124
125
  - lib/neeto_deploy/cli/redis/set.rb
125
126
  - lib/neeto_deploy/cli/session.rb
126
127
  - lib/neeto_deploy/cli/ui.rb