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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/neeto_deploy/cli/redis/commands.rb +8 -0
- data/lib/neeto_deploy/cli/redis/get.rb +37 -0
- data/lib/neeto_deploy/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c89f6daf95ba95dadcfcbfdf897ff3b9642003da42240d53a566549ab7c80039
|
4
|
+
data.tar.gz: 890eb532d959f1807b315d8fde953bbbe0590bca1b13abfd3f743a77d238b768
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c492b22e65f9e9f4eeccee4f0720346e94a42885efda1086bad9644414a216aea06dec6881b6764ed011867bb76a1132065c6fd77772e70d001c82e0950de4ac
|
7
|
+
data.tar.gz: ef3ca43ae3235150ca96ebbd5685ec744774ececa07bc8cf9c35f1267f641200de666f2afae80a28f291afcd214cec21979a158186de519c13ed141fdf405491
|
data/Gemfile.lock
CHANGED
@@ -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
|
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.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-
|
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
|